Execute tool
Execute a specific tool operation with provided arguments and authentication. This is the primary endpoint for integrating with third-party services and executing tools. You can provide structured arguments or use natural language processing by providing a text description of what you want to accomplish.
Path parameters
The tool slug to execute
Headers
JSON object containing custom headers to pass to LLM providers (OpenAI, Bedrock, etc.)
Request body
Example request
{
"connected_account_id": "ca_1a2b3c4d5e6f",
"entity_id": "repo-123",
"user_id": "user-123",
"version": "latest",
"custom_auth_params": {
"base_url": "https://api.example.com",
"parameters": [
{
"name": "x-api-key",
"value": "secret-key",
"in": "header"
}
]
},
"arguments": {
"repository": "octocat/Hello-World",
"workflow_id": "main.yml",
"ref": "main",
"inputs": {
"environment": "production"
}
},
"text": "Trigger the main workflow in the octocat/Hello-World repository on the main branch for the production environment"
}Response
Successfully executed action and received response
Example response
{
"data": {
"run_id": 12345678,
"status": "queued",
"created_at": "2023-01-01T12:00:00Z",
"html_url": "https://github.com/octocat/Hello-World/actions/runs/12345678"
},
"successful": true,
"session_info": {
"session_id": "session-12345",
"expires_at": "2023-01-01T13:00:00Z"
},
"log_id": "log_1a2b3c4d5e6f"
}Changes
Changed in 4 of the 61 revisions of this API.5
- ○
the request property
custom_connection_data/oneOf[subschema #11]/val/client_idbecame optionalrequest-property-became-optional
- ○
the request property
custom_connection_data/oneOf[subschema #11]/val/client_secretbecame optionalrequest-property-became-optional
- ○
- ○
the endpoint scheme security
CookieAuthwas removed from the APIapi-security-removed
- ○
- ○
added the new optional request property
custom_connection_data/oneOf[subschema #1]/val/extra_token_datanew-optional-request-property
- ○
- ○
endpoint added
endpoint-added
- ○