List Markdown headings
outline_markdownLists every Markdown heading with its level, path, anchor, line number, and size to map a long document before reading, chunking, or retrieving a section by heading.
Instructions
List every heading in a Markdown file or text, with its level, path, anchor, line number and size.
Use this when you want a quick map of a long document before you read or chunk it, or to find the exact heading or anchor to pass to get_section. Headings inside code blocks and YAML front matter are ignored. Both "# Title" and underlined (=== / ---) headings are found.
Do not use it to get the text itself (use get_section or chunk_markdown).
Returns {"source", "count", "headings": [{"level", "title", "path", "anchor", "line", "end_line", "chars"}]}. chars is the size of that heading's own text, not counting the sections under it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Full path to a local Markdown or text file (UTF-8, up to 10 MB). Leave empty if you pass text. | |
| text | No | Markdown text to use instead of a file. Leave empty if you pass path. |