Skip to content

doc_read

DocumentsRead-only

A document's model: every element (annotations, images, tails...) with all its properties, and its sections (canvas, stage, camera, document), each in the shape doc_edit's set takes. Points and rects are the picture's own pixels (canvas.picture_at says where the picture sits in doc_render's image). With no id, the item open in an editor, else the gallery's current item. describe explains every kind and property.

Available at every access level, including a client that sent X-Access-Level: readonly.

Parameters

NameTypeRequiredDescription
idstringnoThe item's id.
pathstringnoOr its path or name.
pageintegernoA multi-page image's page (1 is the first; default the one on screen).
idsstring[]noOnly these elements (ids, or section names); with kinds, these as well as those.
kindsstring[]noOnly elements of these kinds; with ids, these as well as those.
textbooleannoAlso the words in the picture (read from its pixels), with where each line is.
codesbooleannoAn image: also the QR codes and barcodes in the picture, decoded (text and format), as Extract QR/Barcode reads them.
at_msintegernoFor a video: read each annotation that animates as it is at this moment (default: at its start).
coordsstring one of "doc", "render"nodoc (default): the picture's own pixels (a video item's: the recording's, or the canvas's for a canvas item). render: the pixels of your last doc_render of this document, as you saw it.

Example

A JSON-RPC call to POST http://localhost:21516/mcp with the bearer token, filling in the required parameters:

{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "doc_read",
"arguments": {}
}
}

See the MCP server overview for how to connect a client and where the token lives.