Check a task
get_taskRetrieves the status, progress and final result of a background task started by run_task or retrieve_data. Waits up to wait_seconds and returns when done or still running.
Instructions
Wait for a task started by run_task or retrieve_data and return its status, latest progress and, once finished, its result. Returns as soon as the task finishes, or after wait_seconds with status "running" (call again). Tasks are kept for an hour after they finish and are lost when this server restarts.
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": {
"task_id": "<task_id>"
},
"name": "get_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | The task_id returned by run_task or retrieve_data. | |
| wait_seconds | No | How long to wait for the task to finish before answering. 0 answers immediately. |