export_diagram_image
Exports a diagram as a base64-encoded JPEG image (max 1024px) for use with the Claude API.
Instructions
Export a diagram as a JPEG image (base64 encoded, max 1024px).
Returns MCP ImageContent containing the resized diagram image. The image is re-encoded as JPEG for compatibility with the Claude API.
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": {
"diagram_id": "<diagram_id>"
},
"name": "export_diagram_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diagram_id | Yes |