Documentation Index
Fetch the complete documentation index at: https://docs.xpander.ai/llms.txt
Use this file to discover all available pages before exploring further.
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 (the tool’s name field)
Request Body
Response
The tool execution result (format varies by tool)
Execution status: success or error
Tool execution time in seconds
Error message if status is error (nullable)
Example Request
curl -X POST -H "x-api-key: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{
"parameters": {
"channel": "#announcements",
"message": "Deployment completed successfully"
}
}' \
https://api.xpander.ai/v1/toolkits/<toolkit-id>/tools/send_message
Example Response (Success)
{
"result": {
"message_ts": "1234567890.123456",
"channel": "C1234567890",
"text": "Deployment completed successfully"
},
"status": "success",
"execution_time": 0.87
}
Example Response (Error)
{
"result": null,
"status": "error",
"execution_time": 0.23,
"error": "Channel not found: #invalid-channel"
}
Notes
- This endpoint requires custom toolkits to be configured
- Tool parameters must match the schema from Get Toolkit Tools
- All required parameters must be provided
- Built-in tools are invoked automatically by agents and don’t require this endpoint
- Custom toolkits must be configured through the web dashboard
- Execution time includes network latency and tool processing
- Returns 404 if the toolkit or tool is not found
- Returns 400 if required parameters are missing
API Key for authentication