Runtime tools let you define tools directly in dispatch requests, without saving them to your account first. This is useful for dynamic tool configurations, testing, and multi-tenant applications.
Runtime tools support the same types as saved tools:
Call any HTTP API:
Execute JavaScript in a secure sandbox:
Execute another Runtype flow as a tool:
Use the secrets field for sensitive values:
Reference in tool config: {{secrets.api_token}}
Secrets are never logged, stored, or returned in API responses.
Tool configurations support template variables:
Example:
Mix runtime tools with saved tools:
The TypeScript SDK provides helper functions:
The API uses camelCase for all field names:
If you use the same runtime tool repeatedly, save it to your account via the API or dashboard for cleaner code.
Use lowercase header names (e.g., authorization not Authorization) to avoid issues with automatic case conversion.
Use runtime tools to test configurations, then save working tools for production use.
Ensure parametersSchema is valid JSON Schema. Invalid schemas cause tool calls to fail.