get_document_outline
Extract a document's heading structure as a flat list of headings. Specify the maximum heading level to include, and receive each heading's level, text, and paragraph ID.
Instructions
Return a flat list of headings as a document outline.
Walks the document body and returns every heading paragraph up to the specified level.
Args: max_level: Maximum heading level to include (1–6, default 6).
Returns: JSON list of dicts with keys: level (int), text (str), para_id (str).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_document_outline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_level | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |