Get the result of a running job
get_job_resultFetch the result of a slow TinyFish Agent run using its job_id; if status is still running, wait about 15 seconds and call again.
Instructions
Fetch the result of a slow TinyFish Agent run that another Stacks tool started (a job_id from ask_library, a fallback_job_id from an error, or a diagnosis_job_id from health_check). If status is still 'running', wait about 15 seconds and call again.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"job_id": "<job_id>"
},
"name": "get_job_result"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | The job id exactly as returned by another tool. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| error | Yes | ||
| job_id | Yes | ||
| result | Yes | The Agent's structured result once completed. For kind 'ask': { answer, found, source_urls }. | |
| source | Yes | Provenance of the data. | |
| status | Yes | ||
| agent_steps | Yes |