Paint: import an image
paint_importImport PNG, JPG, BMP, or base64 image data to create a new canvas or add a layer to an existing canvas.
Instructions
Bring a picture in: path for a file under the paint root (png/jpg/bmp, real format is sniffed from the bytes), or data with base64 when the agent already holds the bytes. Creates a canvas, or adds a layer when the target canvas exists.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Base64 (or data:…;base64,) image bytes | |
| path | No | Image or .paint file, relative to the paint root unless absolute paths are allowed | |
| canvas | No | Name for the new canvas, or the existing canvas to receive a layer | |
| preview | No | Image reply: auto/thumb = downscaled picture back into the result, full = unpixelated, none = text only | |
| as_layer | No | Add to an existing canvas instead of creating a new one |