Undo Edits
undo_editsRevert recent edits on a QGIS layer by specifying the number of steps to undo. Returns the count of undone steps.
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 |