Read a document
read_docRetrieve a specific markdown doc section with frontmatter, or receive an outline for large docs. Missing paths return closest matching alternatives.
Instructions
Reads one section of a document, along with its frontmatter. Built for sections, not whole files: pass section whenever you can. Omitting it returns the entire document when it is small or cannot usefully be split into sections; a large document with sections returns its outline instead (H2 and H3 headings, each with an estimated token size), so call again with one of those headings as section. To read or summarize a whole document, start from its outline and request the sections you need. When a user names a section in a .md document, pass that named section here after locating the indexed path with docs_overview if necessary. If the path does not exist, it responds with the 3 closest matching paths instead of failing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Document path, relative to the docs directory | |
| section | No | Heading (or part of it) of the section to read, e.g. 'Business rules', or a heading from read_doc's outline. Use the section field of a search_docs result. Sections name a region of a document, not a single fragment: a large section returns all of its parts joined. |