paint_transform
Apply affine transforms—translate, scale, rotate, or a custom matrix—to a paint layer or selected pixels while keeping text and vector sources editable.
Instructions
Affine layer transform (document canvas fixed). matrix=[a,b,c,d,e,f], x'=ax+by+c,y'=dx+ey+f; or translate/scale/clockwise degrees about origin. resample='nearest' keeps pixel art crisp. Text/vector source remains editable. selection_only cuts/moves selected raster pixels.
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_transform"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | ||
| matrix | No | ||
| origin | No | ||
| layer_id | No | Target layer id or unique layer name; the active layer stays unchanged. Default: active layer | |
| resample | No | bicubic | |
| rotation | No | ||
| translate | No | ||
| document_id | No | Target this document instead of the shared active one (recommended when several agents share the server) | |
| selection_only | No |