read_document
Extract text from study documents (PDF, Markdown, text, Word) by specifying the file path. Optionally limit character count or select page range for PDFs.
Instructions
Read or extract text from a study document.
Args:
relative_path: Path relative to docs root, e.g. lpdp/essay.pdf
max_chars: Maximum characters to return (default 50000)
page_start: PDF only — 1-based start page (0 = from beginning)
page_end: PDF only — 1-based end page inclusive (0 = through last page)
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": {
"relative_path": "<relative_path>"
},
"name": "read_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| relative_path | Yes | ||
| max_chars | No | ||
| page_start | No | ||
| page_end | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |