Execute a specific tool within a toolkit with provided parameters. This allows direct tool invocation outside of agent execution.
Path Parameters
Unique identifier of the toolkit (UUID format)
Identifier of the specific tool to invoke
Request Body
Tool-specific parameters matching the tool’s schema from [Get Toolkit Tools](/API reference/v1/toolkits/get-toolkit-tools)
Response
The tool execution result (format varies by tool)
Execution status: success, error
Tool execution time in seconds
Notes
- This endpoint requires custom toolkits to be configured
- Tool parameters must match the schema from [Get Toolkit Tools](/API reference/v1/toolkits/get-toolkit-tools)
- Built-in tools are invoked automatically by agents and don’t require this endpoint
- Currently, custom toolkits must be configured through the web dashboard
Example Request
curl -X POST -H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
https://api.xpander.ai/v1/toolkits/{toolkit_id}/tools/{tool_id} \
-d '{
"parameters": {
"query": "AI agent frameworks",
"max_results": 5
}
}'
Example Response
{
"result": {
"data": [
{
"title": "Top AI Agent Frameworks",
"url": "https://example.com/article",
"snippet": "Comprehensive guide to AI agent frameworks..."
}
]
},
"status": "success",
"execution_time": 1.23
}
API Key for authentication