read_document
Reads exact Markdown with bounded comment previews, revision-aware pagination, and archived reviews so you can inspect document content and comments while preserving context.
Instructions
Exact Markdown with bounded comment previews. Follow textPage/quotePage via commentId and commentField for full originals. Reuse revision AND commentsRevision; new comments remain visible when content is unchanged. Follow nextOffset/expectedRevision and commentsPage.nextCursor. archiveName reads retained reviews using the original change id.
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": {
"id": "<id>",
"path": "<path>"
},
"name": "read_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| path | Yes | ||
| limit | No | ||
| offset | No | ||
| commentId | No | ||
| archiveName | No | ||
| commentField | No | ||
| commentsLimit | No | ||
| knownRevision | No | ||
| workspacePath | No | Trusted absolute project path from this chat; pass on every call. null selects personal storage. Omission uses only the environment default. | |
| commentsCursor | No | ||
| expectedIdentity | No | ||
| expectedRevision | No | ||
| knownCommentsRevision | No |