Delete Features
delete_featuresRemove unwanted features from a QGIS layer by specifying feature IDs or an expression.
Instructions
Delete features by feature IDs or expression filter. Provide either fids (list of ints) or expression (string), not both.
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": "delete_features"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fids | No | ||
| layer_id | Yes | ||
| expression | No |