查询 DSH 任务状态
dsh_statusQuery task status and incremental events for a delegated DSH task. Use long polling with wait_s to wait longer per call and avoid frequent leader round trips.
Instructions
查询任务状态与增量事件。status 为 succeeded/failed/cancelled 表示结束。用 wait_s 长轮询(建议 60–120s)一次等更久,减少 leader 往返;不要用 5–25s 高频轮询。
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_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | No | 上次返回的 next_cursor,用于只取增量事件 | |
| wait_s | No | 长轮询等待秒数(默认 0);实际上限由 worker 配置 DSH_MCP_STATUS_WAIT_MAX_S 决定(当前 120s) | |
| task_id | Yes | dsh_run 返回的任务 id |