Poll Task
poll_taskWaits for a task to reach completed, failed, or cancelled by checking status periodically, with an optional timeout, for use only when the user explicitly asks to wait or poll.
Instructions
轮询任务直到获得最终结果(仅用户明确要求时使用)
它是等待手段;只看一眼请用 get_task。 每 20 秒查询一次任务状态,直到任务进入 completed / failed / cancelled 状态。 默认不设置超时;传入 timeout_seconds 可限制最大轮询时长。
⚠️ 重要:Agent 禁止主动调用此工具。ONLY use this tool when the user explicitly asks to wait for or poll a task result (e.g. "帮我等结果"、"轮询一下任务"). 如果用户没有明确表达等待意图,应询问用户而不是直接轮询。
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": "poll_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server | No | ||
| task_id | Yes | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |