doc.save
Captures a page as a searchable document by scrolling to load lazy content, extracting it as Markdown, and indexing the full text so you can answer from saved docs instead of re-fetching.
Instructions
Capture a page as a saved document: scroll it until the lazy content has actually loaded, extract it as Markdown, store the full text as an artifact and index it for search. This is the tool for "read these docs" - save once, then answer from doc.search instead of re-fetching. Passing url navigates there first and returns immediately if that URL is already saved (refresh:true re-captures).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "doc.save"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Navigate here first. Omit to capture the page already open. | |
| find | No | Record regex / text / selector hits against this page. | |
| label | No | Free-text tag for this capture. | |
| format | No | Default "markdown": keeps headings, code fences, tables and link targets, which is what makes a saved API reference still readable. "text" is flat visible text. | |
| scroll | No | Default true: sweep the page until scrollHeight stops growing, so lazy-loaded and reveal-on-scroll sections are actually in the DOM before extraction. Turn off only for a page you know renders in full immediately. | |
| refresh | No | Re-capture even if this URL is already saved. Updates in place, keeping the same doc_id. | |
| selector | No | Capture only this element instead of letting main_only pick one. | |
| main_only | No | Default true: capture the <main>/<article> content and drop nav, sidebar and footer. Set false if the page has no content landmark and comes back short. | |
| max_links | No | Cap on links collected per page (default 500). | |
| settle_ms | No | Extra wait after scrolling, before extracting. | |
| target_id | No | Target handle (tgt_*). Omit for the active page. | |
| browser_id | No | Browser handle (br_*). Omit to use the only running browser, or auto-launch one. | |
| click_more | No | Also click "Load more" / "Show all" buttons between sweeps. Off by default because it is a real interaction, not just a scroll. | |
| collection | No | Group this with related pages, e.g. "nextjs-docs". Filter and search by it later. | |
| timeout_ms | No | ||
| wait_until | No | ||
| preview_chars | No | How much of the text to echo back (default 600, 0 for none). | |
| scroll_passes | No | Cap on sweeps (default 12, max 60). Raise for a long infinite-scroll list. | |
| scroll_pause_ms | No | Wait after each sweep for content to load (default 250). |