Execute a tool within a tool router session

Executes a specific tool within a tool router session. The toolkit is automatically inferred from the tool slug. The tool must belong to an allowed toolkit and must not be disabled in the session configuration. This endpoint validates permissions, resolves connected accounts, and executes the tool with the session context.

Authentication

x-api-keystring
API key authentication

Path parameters

session_idstringRequiredformat: "toolRouterSessionId"

Tool router session ID (required for public API, optional for internal - injected by middleware)

Headers

x-session-access-keystringOptional

Request

This endpoint expects an object.
tool_slugstringRequired>=1 character
The unique slug identifier of the tool to execute
argumentsmap from strings to anyOptional
The arguments required by the tool

Response

Successfully executed the tool. Returns execution result, logs, and status.
datamap from strings to any
The data returned by the tool execution
errorstring or null
Error message if the execution failed, null otherwise
log_idstring
Unique identifier for the execution log

Errors