remove_layer
Remove a layer from the QGIS project by its id or unique name. Use it to clear an unwanted or stale layer before inspecting or verifying plugin behavior.
Instructions
Remove a layer from the project by id or unique name.
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": "<layer>"
},
"name": "remove_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | Yes |