Get task status
get_taskRetrieve the status and completed output URL for a task by ID; set wait:true to block until it finishes after webhooks, polling timeouts, or wait:false starts.
Instructions
Get the status and (if completed) output URL of a task by id. Use to resume after a webhook, a polling timeout, or a generation started with wait:false. Pass wait:true to block until it finishes.
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 |
|---|---|---|---|
| wait | No | Set true to block until the task reaches a final state (completed/failed) and return the result, instead of returning the current status immediately. | |
| task_id | Yes | The task_id returned by a previous generation call. |