resize_sprite
Scale an entire sprite—all layers and frames—to a new pixel width and height using nearest-neighbour resampling, preserving pixel-art edges.
Instructions
Scale the whole sprite (every layer and frame) to a new size, nearest-neighbour.
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": {
"path": "<path>",
"width": "<width>",
"height": "<height>"
},
"name": "resize_sprite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Sprite file. Relative paths resolve against the server root. | |
| width | Yes | Width in pixels | |
| height | Yes | Height in pixels |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||