create_slice
Creates a named atlas region at a specified rectangle for export as Unity sprites in one undo step, with optional headless file targeting.
Instructions
Create a named slice (atlas region) at the given rectangle. Slices become
Unity sprites via export_unity_slices. 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": "create_slice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| file | No | ||
| name | Yes | ||
| width | Yes | ||
| height | Yes |