add_documentation
Crawl a framework or library documentation site and index it for semantic search, with incremental re-ingestion that skips unchanged pages.
Instructions
Crawl a framework/library documentation site and index it for semantic search.
Re-ingesting an existing source is incremental: pages whose extracted markdown is unchanged are skipped (no re-embedding).
Args: name: Short identifier for the framework, e.g. "react". version: Version string, e.g. "18.3" or "latest". base_url: Entry point URL of the documentation site. max_depth: How many link hops to follow from base_url. max_pages: Hard cap on the number of pages crawled. background: If true, start the crawl and return a job id immediately; track it with get_ingest_status. Large sites should use this to avoid tool timeouts. prune_missing: If true, delete indexed pages that this crawl did not visit. Only enable when depth/page caps cover the whole site, otherwise capped crawls would delete valid pages. lang: ISO 639-1 language code to filter pages (e.g. "en"). Only pages matching this language are crawled. sitemap: If true, discover pages from sitemap.xml instead of following links. Gives better coverage for docs sites that expose a sitemap.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | ||
| name | Yes | ||
| sitemap | No | ||
| version | Yes | ||
| base_url | Yes | ||
| max_depth | No | ||
| max_pages | No | ||
| background | No | ||
| prune_missing | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |