Read one section of a document
docguard_read_sectionRead a specific section or lines from a Markdown doc by section ID, heading anchor, heading text, or line number. Returns bounded text with offset for truncation.
Instructions
Return one section's text, resolved by docguard:section id, then heading anchor, then exact heading text — or, with line, just the lines around one reference from docguard_docs_for_path (the cheapest read for a table row). Bounded: 8192 bytes by default, 32768 at most; a truncated result carries nextOffset. An ambiguous match fails with the candidates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | docguard:section id | |
| doc | Yes | Project-relative Markdown path | |
| line | No | Read the lines around this line number instead of a whole section | |
| anchor | No | Heading anchor, e.g. spec-lifecycle-registry | |
| offset | No | Byte offset from a previous truncated read | |
| context | No | With line: lines before and after (default 3) | |
| heading | No | Exact heading text | |
| maxBytes | No | ||
| projectDir | No | Project to inspect: a directory inside the directories this server serves (absolute, or relative to the served directory). Defaults to the served directory. |