crop_sprite
Crop a sprite to specified dimensions by setting left, top, width, and height. Optionally save to a new path or overwrite the source file.
Instructions
Crop a sprite to given bounds
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": {
"filePath": "<filePath>",
"x": "<x>",
"y": "<y>",
"width": "<width>",
"height": "<height>"
},
"name": "crop_sprite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Source sprite file | |
| x | Yes | Left edge | |
| y | Yes | Top edge | |
| width | Yes | Crop width | |
| height | Yes | Crop height | |
| savePath | No | Path to save (defaults to overwrite source) |