Get document outline (heading TOC)
outlineExtract document outline (h1-h6 headings with stable anchor IDs) from rendered HTML as a quick pre-check before full content extraction.
Instructions
Return the document outline (h1-h6 headings with stable anchor ids) of already-rendered (post-JavaScript) HTML as a cheap pre-check before full extraction. No Readability scoring, no Turndown, no sanitization — a pure heading walk. The server fetches nothing: html is the only source, and url is origin context only (never fetched).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Origin URL, carried through to metadata.url and used to absolutize links. NEVER fetched — origin context only. | |
| html | Yes | Already-rendered HTML (post-JavaScript) to walk for headings. No Readability scoring, Turndown, or sanitization is applied. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Indented-bullet table of contents, one line per heading, nested by depth. | |
| outline | Yes | Document headings (h1–h6) in document order, each with a stable anchor id. | |
| metadata | Yes | Outline document metadata. | |
| schemaVersion | Yes | Structured-content schema version. Bumps only on breaking shape changes to this object. |