Export drawing as image
export_drawingExports a drawing as a PNG or SVG image file for documentation, READMEs, or slides, returning it as an attachment clients can save.
Instructions
Exports a drawing as an image file, as Excalidraw's "Export image" does, for documentation, a README, or slides. The file comes back attached: PNG as image content, SVG as an embedded resource. Clients that save attachments give you a file path to copy from.
"png" (default) is a bitmap that every client can show. "svg" stays sharp at any size and embeds the drawing's fonts, so it looks the same anywhere, even in an .
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": {
"id": "<id>"
},
"name": "export_drawing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | A drawing id from list_drawings or search_drawings. | |
| scale | No | Size multiplier. Default 2 for PNG (sharp on high-density screens), 1 for SVG. | |
| format | No | Default "png". | png |
| padding | No | Space around the drawing, in pixels. Default 10. | |
| darkMode | No | Dark mode, as the canvas shows it. Default false. | |
| background | No | Fill the canvas color behind the drawing. false gives a transparent background. Default true. |