Get DSH task status
dsh_get_statusReturn the bounded status of a DSH coding task, with optional long-polling up to 25 seconds to avoid rapid polling. Check whether a task is terminal before retrieving results.
Instructions
Return the bounded status of a DSH task. Set wait_seconds for a short long-poll (maximum 25s) instead of polling rapidly. When terminal is true, call dsh_get_result.
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": "dsh_get_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | Task id returned by dsh_start_task. | |
| wait_seconds | No | Wait up to this many seconds for a terminal state. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| next | No | ||
| task | Yes | ||
| message | No | ||
| terminal | Yes |