Undo Edits
undo_editsRevert recent edit operations on a QGIS layer using its own undo stack and return how many steps were actually undone. Specify the layer and an optional step count.
Instructions
Undo the last edit operations on a layer (its own undo stack). Returns how many steps were actually undone.
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": "undo_edits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | No | ||
| layer_id | Yes |