outline
Retrieves document metadata and a structural section map for one or more document IDs in batch, helping identify target sections before reading and reducing repeated read calls.
Instructions
[Workflow: search → grep or outline → read] Get metadata and structural outline of one or more documents by their IDs (obtained from search results) in batch. Recommended for documents >50 lines with has_outline=true — saves multiple read calls by identifying target sections first. Note: has_outline in each search result tells you which documents have a parsed outline; for the rest, use 'grep' to find specific patterns or 'read' for line-by-line browsing.
Size fields (Desktop-local documents): word_count counts words (one per CJK character or Latin word; whitespace/punctuation/markup excluded) and reads well below a Chinese user's 字数; char_count counts Unicode characters of the extracted body (whitespace/punctuation/markup included, CR excluded) — the figure to match what the user sees. null/omitted char_count = not yet computed (or an older Desktop), not an empty body; read on a local document returns it whenever the Desktop supports it. cloud:// items do not carry char_count.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"doc_ids": "<doc_ids>"
},
"name": "outline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expand | No | Node IDs to expand (e.g. ["2", "3.1"]). When provided, only specified nodes are fully expanded; others are collapsed. When omitted, shows as many levels as fit within the budget. | |
| doc_ids | Yes | List of document IDs (obtained from search results). Each ID is an opaque string — pass through verbatim from `search`. Local documents take the form `local://<integer>`; bare integer IDs from older clients remain accepted. When connected via the gateway, cloud documents use the form `cloud://<owner>/<slug>/<root-hash>/<path>` — Desktop handles only local IDs; the gateway routes cloud IDs to the cloud backend. | |
| output_format | No | Output format. Defaults to "markdown" (human-readable); set to "json" for structured JSON (machine-parseable). Sending `null` or omitting the field both yield the default. |