Export layers
exportConvert design layers to PNG, JPG, SVG, WebP, PDF, or Fig; return image bytes or write the file to a given path.
Instructions
Export layers as png, jpg, svg, webp, pdf or fig. Without path the bytes come back as image content; with path the app writes the file.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | ||
| cmyk | No | ||
| path | No | ||
| size | No | ||
| bleed | No | ||
| scale | No | ||
| format | No | ||
| cropMarks | No | ||
| bleedMarks | No | ||
| contentsOnly | No | ||
| svgIdAttribute | No | ||
| svgOutlineText | No | ||
| svgSimplifyStroke | No | ||
| includeBoundingBox | No |