history
Revert or advance document changes within your Inkscape design. Control the undo/redo stack precisely, guarding against stale edits after agent intervention.
Instructions
Undo or redo n steps in the live document (the same stack as the user's Cmd+Z). Pass expected_revision so an undo never takes back something the user did after your edit.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| op | No | undo | |
| expected_revision | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |