charm_read_diagram
View an original diagram and its separately labeled stored machine OCR.
Use the exact source page path and a diagrams[].index from charm_read_source.
Returns native image content plus provenance and available OCR text, confidence
and bounding boxes. Verify numbers and flowchart branches visually; OCR can err.
OCR may be unavailable; that does not mean the diagram has no text.
Follow ocr.next_offset with ocr_offset to read longer OCR; ocr_limit is 1–20000.
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": {
"path": "<path>",
"image_index": "<image_index>"
},
"name": "charm_read_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| ocr_limit | No | ||
| ocr_offset | No | ||
| image_index | Yes |