Read the whole document
get_documentThe whole document in one call, in order: each block's id, type and content (the JSON edit_block takes). For the document's LaTeX, use get_latex. Read a paper with this before revising it, rather than one get_block per block. A long document comes in pages: offset and limit count blocks (default 0 and 150, at most 400); nextOffset is where the next page starts (null on the last).
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": {
"documentId": "<documentId>"
},
"name": "get_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many blocks, 1 to 400. Default 150. | |
| offset | No | The first block to return, counting from 0. Default 0. | |
| documentId | Yes | The document id. |