read_document
Retrieve a document or task by ID or path, optionally limited to a startLine/endLine range, including library section files. Use it to inspect content before editing or answering questions.
Instructions
Read a specific document or task. Works with both regular documents and tasks from tasklists (tasks are markdown documents). Also reads library section files by path (documents///sections/.md or a doc:…#s-… citation) — but for library questions prefer search_library + get_library_section, and never read a whole volume. For large documents pass startLine/endLine; the response includes totalLines.
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": {
"workspace": "<workspace>",
"documentId": "<documentId>"
},
"name": "read_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endLine | No | Last line to return (1-based, inclusive). Omit to read to the end. | |
| startLine | No | First line to return (1-based, inclusive). Omit to start from the beginning. | |
| workspace | Yes | Workspace path/name | |
| documentId | Yes | Document ID, path from registry, task path (e.g., "documents/Mobile Tasks/Core/task-name.md"), or a library section file path |