shift_layer
Move a layer by specified pixel offsets, with optional edge wrapping for seamless tile adjustments.
Instructions
Translate the whole layer by (dx,dy), optionally wrapping around the edges.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"doc_id": "<doc_id>",
"dx": "<dx>",
"dy": "<dy>"
},
"name": "shift_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dx | Yes | ||
| dy | Yes | ||
| wrap | No | ||
| frame | No | Frame index, 0-based (default: active frame) | |
| layer | No | Layer id or name (default: active layer) | |
| doc_id | Yes | Document id | |
| render | No | Include a render of the change (default true) |