maket_reader
Render a Maket document page without image data, retrieve a page image downscaled to its displayed width, or write a value into a state document to update reader-view forms.
Instructions
Calls of the Maket reader view (ui://maket/page): page returns one rendered page without image data, image returns one of its images downscaled to the displayed width, write sets one value of a state document as the Maket form does. Not for agents.
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": {
"action": "<action>",
"doc": "<doc>"
},
"name": "maket_reader"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | No | For write: patch op. | |
| doc | Yes | Document name. | |
| file | No | For image: the asset file, one of the page's images. | |
| page | No | For page and image: 1-based page number. | |
| path | No | For write: JSON Pointer of the value. | |
| value | No | For write: the new value. | |
| width | No | For image: displayed width in device pixels. | |
| action | Yes | page, image or write. | |
| expectedRevision | No | For write: the state revision the value was edited from. |