crawl_site
Initiates a background crawl for a configured site, staging results and replacing the stored corpus only upon successful completion, so failed or cancelled crawls leave the previous corpus intact.
Instructions
Start a background crawl for a configured site. Returns immediately with a job ID. The crawl builds in a staging area and replaces the stored corpus only when it completes, so a cancelled or failed crawl leaves the previous corpus intact. A crawl that lost a large share of its pages is kept back instead (the job fails with refused set), and the stored corpus is kept.
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": {
"site_key": "<site_key>"
},
"name": "crawl_site"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_key | Yes | Site key from config (use list_sites to discover available keys) | |
| incremental | No | Enable incremental mode (skip unchanged pages) | |
| allow_shrink | No | Publish the crawl even if it lost many pages compared to the last one (use with incremental:true to publish a kept-back crawl) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | ||
| status | Yes | started, or already_running when a crawl for the site is in progress | |
| message | Yes | ||
| site_key | Yes | ||
| incremental | Yes |