remove_layer
Remove a layer or entire group from an .icon bundle, with optional cleanup of orphaned asset files.
Instructions
Remove a layer or entire group from an .icon bundle. Optionally cleans up orphaned asset files.
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": {
"bundle_path": "<bundle_path>",
"target": "<target>",
"group_index": "<group_index>"
},
"name": "remove_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Whether to remove a single layer or an entire group | |
| bundle_path | Yes | Path to .icon bundle | |
| group_index | Yes | Group index (0-based) | |
| layer_index | No | Layer index within the group (0-based, required when target=layer) | |
| cleanup_assets | No | Delete orphaned asset files from the Assets directory |