open_document
Import a PNG image as a new pixel art document, converting it to a limited color palette with up to 63 colors. Supports loading from file path or base64 data.
Instructions
Import a PNG image as a new document from exactly one of png_base64 or path, quantizing to at most max_colors colors. Max 256x256.
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": "open_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path to a PNG on the server filesystem (mutually exclusive with png_base64) | |
| max_colors | No | Max palette colors (default 16) | |
| png_base64 | No | PNG file content, base64-encoded (mutually exclusive with path) |