Graphite: delete a layer
graphite_delete_layerDeletes a layer and everything inside it from the active Graphite document. Reversible with undo; fails if layer ID is not found.
Instructions
Delete a layer and everything inside it. Reversible with graphite_undo. Fails with LAYER_NOT_FOUND if the id is not in the active document.
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": {
"layer_id": "<layer_id>"
},
"name": "graphite_delete_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer_id | Yes | layer_id as returned by graphite_insert_svg or listed by graphite_get_document. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deleted | Yes | ||
| layer_id | Yes |