export_texture
Convert a pixel canvas into PNG files, Base64 data URIs, ASCII previews, or JSON grids for easy sharing and integration.
Instructions
Exports the pixel canvas to a PNG file, Base64 Data URI, ASCII preview grid, or JSON grid.
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": {
"canvas_id": "<canvas_id>",
"format": "<format>"
},
"name": "export_texture"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Pixel art integer scaling factor for crisp output (default: 4 for files/data_uri) | |
| format | Yes | Export format target | |
| canvas_id | Yes | Target canvas ID | |
| file_path | No | Absolute or relative file path (required if format is 'png_file') |