Quote a site crawl
web_access_sitemap_quoteQuote an asynchronous crawl of authorized public pages on one website. Nothing is crawled or billed: the quote creates a job that waits for approval. Starting from one URL, the crawler follows same-domain links breadth-first and can also seed from the site's /sitemap.xml. PDF links are crawled as pages, billed like HTML pages; links inside a PDF are not followed. Requests must comply with destination policy, robots directives, rate limits, and access controls.
Use it to discover pages for site audits, authorized retrieval worklists, or coverage checks before fetching individual pages. Not for: reading one page's content (use web_access_fetch) or open-ended web queries (use web_access_search).
Requires url. Optional: maxPages, maxDepth, pathPrefix (only crawl URLs whose path starts with this, e.g. "/docs"), budgetUsd (spend ceiling; the crawl stops with status token_cap_exceeded if it would exceed it), useSitemap (also seed the site's root /sitemap.xml — one extra billed page, but finds pages links miss). The input schema states each field's bounds; a value outside them is rejected rather than replaced by the default, so omit a field to get its default.
{ "url": "https://example.com", "maxPages": 200, "maxDepth": 3 }Returns: jobId, estimatedPages, and estimatedCostUsd, with status awaiting_approval. A 403 means the target domain is blocked for this account (contact support@usestring.ai).
Next: show the user estimatedCostUsd. Only once they approve that cost, call web_access_sitemap_start with the jobId.
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": {
"url": "<url>"
},
"name": "web_access_sitemap_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The full http(s) URL to start crawling from. The crawl stays on this URL's domain. | |
| maxDepth | No | How many links deep the crawl follows from the start URL. Omit for 2. | |
| maxPages | No | How many pages the crawl may fetch at most; each fetched page is billed once the crawl starts, and the quote's estimatedPages and estimatedCostUsd follow from it. Omit for 10. | |
| budgetUsd | No | A spend ceiling in USD: the crawl ends with status token_cap_exceeded rather than exceed it. Omit to let the approved quote be the cap. | |
| pathPrefix | No | Restrict the crawl to URLs whose path starts with this prefix, e.g. '/docs'. | |
| useSitemap | No | Also seed the crawl from the site's root /sitemap.xml (one extra billed page; finds pages that internal links miss). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobId | Yes | The crawl job's id, which web_access_sitemap_start and web_access_sitemap_status take. | |
| status | Yes | The job's state: awaiting_approval until web_access_sitemap_start runs it. | |
| estimatedPages | Yes | How many pages the crawl is expected to fetch. | |
| estimatedCostUsd | Yes | The quoted cost in USD. The user approves it before web_access_sitemap_start is called. |