draft_site
Draft and preview a docs site entry to validate selectors, paths, and crawl settings before saving; probe a new site or adjust an existing one with overrides, without writing config.
Instructions
Draft a site entry and preview one page extracted with it. Never writes the config. With url, probes a new docs site the way doc-scraper add does (robots.txt, llms.txt, sitemap, framework detection). With only site_key, starts from that configured site's entry without probing. overrides sets entry fields by their config names (content_selector, allowed_path_prefix, disallowed_path_patterns, max_depth, ...); durations are strings such as "1s". Judge the preview (code blocks kept, nav_leak, chars), draft again with overrides until it looks right, then pass entry to save_site.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | A docs URL to probe as a new site | |
| site_key | No | With url: the key for the new site. Without url: the configured site to start from | |
| overrides | No | Entry fields to set, by config field name | |
| preview_url | No | The page to preview (default: the sampled docs page, else the seed or first start URL) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entry | Yes | The site entry by config field name; pass it, changed as needed, to save_site | |
| exists | Yes | Whether site_key is configured now; save_site then needs replace: true | |
| preview | Yes | ||
| evidence | Yes | ||
| site_key | Yes | ||
| warnings | Yes | ||
| framework | No | ||
| generator | No | ||
| confidence | No | ||
| entry_yaml | Yes | ||
| next_actions | Yes | ||
| config_writes | Yes | enabled or disabled; save_site needs enabled | |
| signal_source | No | ||
| sitemap_page_count | No |