update_slice
Move or resize a sprite slice, or set its 9-slice center and pivot while leaving other fields unchanged; centers that do not fit the new bounds are rejected.
Instructions
Move or resize a slice, or set its 9-slice centre or pivot; other fields stay.
A centre that no longer fits the new rect is an error.
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>",
"name": "<name>"
},
"name": "update_slice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Slice name | |
| path | Yes | Sprite file. Relative paths resolve against the server root. | |
| rect | No | New bounds in canvas pixels | |
| pivot | No | Pivot point relative to the slice's top-left | |
| center | No | 9-slice centre, relative to the slice's top-left; must fit inside it |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||