expand_canvas
Grows or shrinks the canvas on any side without scaling existing pixel content, keeping pixels at their original positions in one undo step.
Instructions
Grow (or shrink, with negatives) the canvas per side WITHOUT scaling
content — existing pixels keep their positions relative to the old
origin. One undo step. Headless: pass 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": "expand_canvas"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| file | No | ||
| left | No | ||
| right | No | ||
| bottom | No |