get_task
Query an asynchronous media task by ID to monitor status and retrieve results; pending or running means not complete, and UNKNOWN may indicate expiration.
Instructions
Query an upstream task using the same API Key. Keep polling explicitly at intervals; pending/running is not generation success. UNKNOWN may mean the task expired.
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 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||