Update Features
update_featuresUpdate feature attributes in a QGIS layer by providing a list of feature IDs and attribute changes. Returns the count of updated features.
Instructions
Update feature attributes. updates: [{fid: 1, attributes: {field: value}}]. Returns count of updated features.
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>",
"updates": "<updates>"
},
"name": "update_features"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| updates | Yes | ||
| layer_id | Yes |