Read a document, or a part of one
read_docReads a document's Markdown text, outline, sections, lines or characters, returning the print each part needs for edits without a whole read.
Instructions
A document's text and the print it reads at. Past about 12,000 characters it comes back as its outline (whole false): then ask for a section, lines, or chars at a time. Every part brings the print, so edit_doc needs no whole read.
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": "<doc>"
},
"name": "read_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as | No | The whole document in GitHub Markdown for another tool; tell the person what `left_out` lists (`rules` «documents»). Not with `section`, lines or `chars` | |
| to | No | Last line; left out, to the end | |
| doc | Yes | The document's id from `docs`, not its title | |
| from | No | First line, from 1 | |
| chars | No | About how many characters to bring; the answer gives `next` when there is more | |
| No | The `print` the previous part came with; only with `cursor` | ||
| cursor | No | The `next` a previous answer gave, with `chars` | |
| section | No | A heading and all under it, by its `at` in `outline_doc`, from 0 |