Execute a tool within a tool router session
Execute a tool (meta or app) within an existing tool router session.
Path parameters
The unique identifier of the tool router session. Required for public API endpoints, optional for internal endpoints where it is injected by middleware.
Tool router session ID (required for public API, optional for internal - injected by middleware)
Request body
Example request
{
"tool_slug": "GITHUB_CREATE_AN_ISSUE",
"arguments": {
"repository": "octocat/Hello-World",
"workflow_id": "main.yml",
"ref": "main",
"inputs": {
"environment": "production"
}
},
"account": "coup_hurricane_dal_analytical",
"enable_auto_workbench_offload": true,
"experimental": {
"custom_toolkits": [
{
"slug": "ecommerce",
"name": "E-Commerce API",
"description": "Internal e-commerce API for order management and fulfillment",
"tools": [
{
"slug": "GET_CUSTOMER_ORDERS",
"name": "Get Customer Orders",
"description": "Fetch recent orders for a customer by their email address",
"input_schema": {
"type": "object",
"properties": {
"email": {
"type": "string",
"description": "Customer email"
}
},
"required": [
"email"
]
}
}
]
}
],
"custom_tools": [
{
"slug": "GET_IMPORTANT_EMAILS",
"name": "Get Important Emails",
"description": "Fetch emails marked as important from the last 24 hours",
"input_schema": {
"type": "object",
"properties": {
"limit": {
"type": "number",
"description": "Max results to return"
}
}
},
"extends_toolkit": "gmail"
}
]
}
}Response
Successfully executed the tool. Returns execution result, logs, and status.
Example response
{
"data": {
"message": "Hello, World!",
"status": "success"
},
"log_id": "log_abc123xyz"
}Changes
Changed in 4 of the 61 revisions of this API.6
- ○
the endpoint scheme security
UserApiKeyAuthwas removed from the APIapi-security-removed
- ○
- ○
the endpoint scheme security
CookieAuthwas removed from the APIapi-security-removed
- ○
- ○
added the new optional request property
experimental/custom_toolkits/items/preloadnew-optional-request-property
- ○
added the new optional request property
experimental/custom_toolkits/items/tools/items/preloadnew-optional-request-property
- ○
added the new optional request property
experimental/custom_tools/items/preloadnew-optional-request-property
- ○
- ○
endpoint added
endpoint-added
- ○