paint_document
Create, open, save, inspect, and close .apaint documents, or export full-resolution PNG, JPEG, WebP, TIFF, ORA, and PSD files while controlling active document state and overwrite protection.
Instructions
Create/open/save .apaint; export full-resolution PNG/JPEG/WebP/TIFF or raster-layer ORA/PSD (scale 2..16 = nearest-neighbour enlargement for flat formats). Export never saves the project: project_saved tells whether the .apaint on disk is current. inspect verifies a saved .apaint read-only. Opening an already open project selects it (force=true reloads). document_id selects/closes, or targets info/save/export without changing the active document. Existing paths protected unless overwrite. Close dirty document requires force.
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": "paint_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | ||
| name | No | Untitled | |
| path | No | ||
| force | No | ||
| scale | No | ||
| width | No | ||
| action | No | info | |
| height | No | ||
| overwrite | No | ||
| background | No | #FFFFFF | |
| document_id | No | ||
| transparent | No |