Execute Tool
Execute a specific tool.
This endpoint delegates to the Tool domain API which handles:
- Tool authorization
- Tool discovery from all sources
- Context injection
- Tool execution
Args:
request: The FastAPI request
tool_name: The name of the tool to execute (from path parameter)
body: The tool execution request body
Returns:
ExecuteToolResponse with execution result or error
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>
, where token is your auth token.
Path parameters
tool_name
Request
This endpoint expects an object.
input_data
Input data for the tool execution
Response
Successful Response
success
Whether the execution was successful
result
Result of the tool execution
error
Error message if execution failed