set_slice_center
Defines a named slice's 9-patch stretchable center rectangle so UI graphics can scale without distorting borders. Use it to set the center region relative to the slice.
Instructions
Set a slice's 9-patch stretchable center rectangle (relative to the slice).
One undo step. Headless: pass file.
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": {
"name": "<name>",
"x": "<x>",
"y": "<y>",
"width": "<width>",
"height": "<height>"
},
"name": "set_slice_center"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| file | No | ||
| name | Yes | ||
| width | Yes | ||
| height | Yes |