get_document
Retrieve a document’s text or a specific section. Paginate long content to read complete, grounded information from local Markdown, text, or PDF files.
Instructions
Retrieve the text of a document, or of one section of it. Long content is
paginated: if truncated is true, call again with offset=next_offset.
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_id": "<doc_id>"
},
"name": "get_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | doc_id from search_docs or list_documents | |
| offset | No | Character offset for paging through long content | |
| section | No | Optional section heading (or 'Page 3' for PDFs) to return only that part. Case-insensitive; partial matches allowed. | |
| max_chars | No | Maximum characters to return |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| doc_id | Yes | ||
| offset | Yes | ||
| content | Yes | ||
| section | Yes | Section returned, or null for the whole document | |
| truncated | Yes | ||
| next_offset | Yes | Pass as `offset` to read the next part | |
| total_chars | Yes |