Wait for a crawl task
wait_for_taskPoll a crawl task server-side until it has a result, reaches a terminal failure/cancelled state, or the bounded timeout expires. Read-only and cheaper for agent context than repeated manual polling.
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": "wait_for_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | Task ID returned by create_crawl_task. | |
| timeout_seconds | No | Maximum wait in seconds (5-120). | |
| poll_interval_seconds | No | Seconds between status checks (2-15). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |