Outline document
outline_documentTurn any document's content into a structured outline. Provide a file path or inline bytes, and get a tree of headings, list items, slides, sheets, or pages with their nested children.
Instructions
Projects a document's table of contents as a structured outline: reads the source through documents.js's DocumentConverter port, takes the tree-form DocumentPackage the conversion reports, and runs document-outline.js's buildOutline over it. Groups carry { text, level, children } (a heading's, list item's, slide's, sheet's, or page's own label plus nested children); leaves carry { kind, text }. The outline is over the source's own content -- the internal conversion target preserves it and is pdf only for odf (the one format that only converts to pdf) and odg (whose alternative, svg, cannot represent more than one page).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | The document to outline. |