subscribe_tool
Long-poll a job handle until it reaches a terminal state (completed/failed), returning the final status for asynchronous task tracking.
Instructions
Long-poll until the job reaches a terminal state (completed/failed/etc).
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_handle": "<job_handle>"
},
"name": "subscribe_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_handle | Yes | ||
| poll_interval | No | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| state | Yes | ||
| images | No | ||
| timeout | No | ||
| progress | No | ||
| video_url | No | ||
| job_handle | Yes |