markdown_outline
Extract the structure of Markdown files by listing headings, levels, and line numbers for navigation and documentation analysis.
Instructions
Returns an outline for each Markdown file: headings, levels, line.
Agent usage guidelines: - Use this tool when you need to extract or display the structure of Markdown documents, such as for navigation, summary, or documentation analysis. - Use when you need to list headings, their levels, and line numbers in Markdown files. - Do not use for non-Markdown files or for reading the full content of the file.
Path requirements: - Paths must not contain URL-encoding (e.g., '%'). - Paths must be absolute. - Paths must exist on disk. Example paths: - Windows: "C:\Users\User\project\README.md" - Linux: "/home/user/project/README.md"
Args: paths (list[str]): List of absolute paths to Markdown files. output_format (str | None): Output format ('json' or 'markdown'). Defaults to server setting (markdown by default).
Returns: dict | str: Outline for each file in the requested format.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | ||
| output_format | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |