docshelf_read_document
Read a document from a shelf's docs/ directory, returning the file content. Supports paging large files with offset and max_bytes.
Instructions
Read a document or section file from inside the shelf's docs/.
Returns the file content directly over MCP — useful for private or
purely-local shelves where the raw.githubusercontent.com fetch
trick doesn't apply. Pass a relative_path from search /
list_documents. Large files are truncated to max_bytes (default
100 KB) with truncated: true; page with the returned next_offset
(slices snap to UTF-8 character boundaries, so it may differ from
offset + max_bytes — using it avoids splitting a multibyte character)
or read the individual split sections. Paths that escape docs/ are
rejected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |