extract
Extract clean, readable markdown from web pages, including authenticated content, with options to target specific sections, links, or assets.
Instructions
Clean, LLM-ready Markdown of the page (or a target subtree) — boilerplate (nav/footer/aside/scripts) stripped, headings/links/lists/code preserved. A drop-in for Crawl4AI/Firecrawl-style scraping on the AUTHENTICATED pages those stateless tools can't reach. Returns markdown TEXT (never a base64 screenshot), capped by max_chars. mode: markdown (default) | links (deduped {url,text}, absolute post-hydration URLs) | assets ({url,type,rel?}, data: dropped) | main (main-content only via density scorer).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Output mode (default markdown). | |
| lease | No | Optional lease token to present if the target session is leased (0.7.0). Threaded per-call; never read from the server's env. | |
| target | No | Optional @eN / @text: / @label: / CSS to scope extraction to a subtree (honored by markdown/links/assets; mode=main is whole-page and rejects it). | |
| session | No | Optional session name to target (omit for the shared 'default'). On a daemon shared with other agents, pass a UNIQUE name for stateful multi-step work (go→click→fill) so you don't collide on 'default'. | |
| max_chars | No | Cap the returned markdown length (truncates beyond it). | |
| max_links | No | mode=links: cap the number of links. | |
| max_assets | No | mode=assets: cap the number of assets. |