What you will accomplish
Run one tool with explicit inputs and inspect its result without compiling an agent or starting a conversation. This uses the selected environment’s saved draft, not a published release. Calls to external services are real; use a test account for actions that send messages or change records.
Before you begin
Choose a project and environment you can access. Save the function or API tool, connect the MCP server, or connect the integration in Voiceflow. You need the resource’s read permission for schema discovery and execute permission to run it.
For REST, follow API authentication. For CLI, use an authenticated CLI release with execute and get-schema commands (the reference is generated from v0.287.0). For an AI client, follow MCP setup.
Discover, execute, and inspect
Choose the capability
Use a function for custom JavaScript, an API tool for a saved HTTP request, an integration action for a connected service, or an MCP tool for a tool on a connected server. Integration actions use the project’s Draft connection and their catalog tool name; they do not need to be attached to the agent first.
Discover the inputs
Call the resource’s schema operation before execution. For a function:
Functions and API tools require a string value for every declared input and reject unknown names. Integration and MCP inputs follow their schemas. Supply actual values rather than conversation-variable tokens. A project secret can be supplied as {secret_name}; see input and secret rules.
Run the saved draft
For a function whose schema declares a string input named customer_id, use:
This input name is illustrative: replace it with your function’s declared inputs. The equivalent REST request is:
Use your deployment’s API base URL from the API reference. To use an AI client, ask it to discover the function schema and execute with these explicit inputs. The function MCP reference shows the structured invocation.
Read the result
Check success, error, and truncated, then inspect output. A function returns output variables, its selected path, and traces. An API tool returns the upstream HTTP status, headers, and body. Integration and MCP tools return their tool result. An HTTP 200 response can still contain success: false.
Verify the outcome
Compare the output with the expected result for your test inputs. For an external action, confirm the effect once in the receiving system. Direct execution does not verify agent routing or conversation state: attach the tool, compile, and run a conversation separately when testing how the agent uses it.
Troubleshooting
Inputs are rejected
Inputs are rejected
Read the schema again after editing the tool. For functions and API tools, include every declared input, omit unknown names, and supply strings. Replace conversation-variable placeholders with explicit values.
Credentials or secrets are missing
Credentials or secrets are missing
Check the project, environment, saved server authorization, and Draft integration connection. Use project-secret names rather than copying credentials into inputs. Nested JSON values do not receive secret substitution.
The request succeeds but the tool fails
The request succeeds but the tool fails
Inspect success and error in the result as well as the transport status. MCP tools can report their own error within a successful protocol response.
Execution times out
Execution times out
Check the external system before retrying an action. A timeout does not establish that the action stopped. See limits and failure handling.
The runtime needs an update
The runtime needs an update
A 503 stating that execution requires a general-runtime update means this deployment does not yet expose the execution route. Contact your deployment administrator; changing inputs will not resolve it.