Skip to main content

Endpoint

GET /v1/tools/run/{toolRunId}/result

Request

Path parameters

ParameterTypeDescription
toolRunIduuidThe ID of the tool run

Headers

HeaderValue
X-API-KeyYour API key

Response

{
  "id": "770e8400-e29b-41d4-a716-446655440000",
  "toolId": "880e8400-e29b-41d4-a716-446655440000",
  "toolName": "CSV Processor",
  "status": "Completed",
  "statusInt": 2,
  "inputData": "{\"url\": \"https://example.com/data.csv\", \"format\": \"summary\"}",
  "outputData": "{\"summary\": \"The dataset contains 1,500 rows...\"}",
  "outputSchema": "{\"type\": \"object\", \"properties\": {\"summary\": {\"type\": \"string\"}}}",
  "errorMessage": null,
  "tokensUsed": 500,
  "actionsUsed": 3,
  "duration": 4000
}

Response fields

FieldTypeDescription
iduuidTool run ID
toolIduuidID of the tool that was executed
toolNamestringDisplay name of the tool
statusstringRun status
inputDatastringJSON input that was provided
outputDatastringJSON result produced by the tool
outputSchemastringJSON schema describing the output format
errorMessagestring?Error details if the run failed
tokensUsedintTotal tokens consumed
actionsUsedintNumber of function executions
durationintTotal execution time in milliseconds