create_slice
Defines an export region over the content beneath it, so you can export that area to a file with export_node_to_file.
Instructions
Create a slice: an export region over whatever lies under it, to export with export_node_to_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": {
"x": "<x>",
"y": "<y>",
"width": "<width>",
"height": "<height>"
},
"name": "create_slice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X position | |
| y | Yes | Y position | |
| name | No | Layer name | |
| width | Yes | Width | |
| height | Yes | Height | |
| parentId | No | Parent node ID (default: current page) |