Export image
export_imageExports a composition, selected layers, or a region to PNG, JPEG, or WebP at a chosen scale, with control over format, quality, and background.
Instructions
Export the composite (or selected layers / a region) to PNG, JPEG or WebP at any scale.
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>"
},
"name": "export_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Output file path (~ allowed) | |
| scale | No | Resize factor (default 1) | |
| format | No | Default from extension, else png | |
| layers | No | Only these layers | |
| region | No | ||
| quality | No | JPEG/WebP quality 0..100 (default 92) | |
| background | No | "doc" (default), "none" (transparent) or a color |