Delete layers
delete_layersDelete layers from a design, with everything inside them and their motion. Returns the deleted layer ids (and any skipped with skip_missing). If one id is not on the design the call is refused and nothing is deleted. Saved as a new revision: undo brings the layers back, but only until the next change is undone past. Use it to remove layers the design no longer needs; to hide one for now set visible: false with update_layers, and to remove a whole page use delete_page.
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": {
"page_id": "<page_id>",
"ids": "<ids>",
"intent": "<intent>"
},
"name": "delete_layers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | The layers to delete (ids from get_design); everything inside them goes too. | |
| intent | Yes | One short sentence: what you change and why. Kept in the design history. | |
| page_id | Yes | The page to work on, as returned by create_design. | |
| skip_missing | No | Skip ids that are no longer on the design instead of refusing the call; the result lists them in `skipped`. |