document_render_preview
Render a bounded transparent PNG preview with Inkscape without altering the source document; small previews return inline, and each is saved to an authorized workspace path.
Instructions
Renders a bounded transparent PNG preview through Inkscape without changing the source document. Small results are returned inline and every preview is saved to an authorized workspace path.
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": {
"expectedRevision": "<expectedRevision>",
"outputPath": "<outputPath>",
"path": "<path>",
"workspaceId": "<workspaceId>"
},
"name": "document_render_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | No | page | |
| path | Yes | ||
| width | No | ||
| height | No | ||
| pageId | No | ||
| outputPath | Yes | ||
| selectionId | No | ||
| workspaceId | Yes | ||
| expectedRevision | Yes | ||
| expectedOutputRevision | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | Yes | ||
| cache | Yes | ||
| width | Yes | ||
| height | Yes | ||
| inline | Yes | ||
| pageId | No | ||
| artifact | Yes | ||
| revision | Yes | ||
| selectionId | No | ||
| documentPath | Yes |