get_document
Read a document at one version (the latest by default) as JSX, with the version number. The JSX starts with a comment that explains its notation. Read it before editing: edit_document needs that version as its base_version, and its edits replace text in this JSX.
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": {
"document_id": "<document_id>"
},
"name": "get_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alias | No | An alias, such as `latest`; `latest` when neither this nor `version` is given. | |
| version | No | A version, by number. | |
| document_id | Yes | The document to read, `doc_…`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The document, `doc_…`. | |
| jsx | No | The [Rendermate document](https://rendermate.com/docs/documents) at this version, written as JSX; only when it's read, not when it's created or committed. Edit it with edit_document, giving this version as `base_version`. | |
| author | No | The API key, or the member, that made it. | |
| sha256 | Yes | SHA-256 of the document as canonical JSON. | |
| message | No | What the commit changes and why. | |
| version | Yes | The version's number: 1 for the document as created, one more for each commit. | |
| commit_id | Yes | The commit that made the version. | |
| committed_at | No | RFC 3339. |