undo
Reverse the last action in REAPER to correct mistakes or restore previous project states.
Instructions
Trigger REAPER's undo. Returns the name of the action that was undone.
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": "undo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/reaper_mcp/server.py:776-782 (handler)MCP tool registration and handler for the "undo" tool.
@mcp.tool() def undo() -> dict[str, Any]: """Trigger REAPER's undo. Returns the name of the action that was undone.""" try: return _wrap(adapter.undo()) except Exception as exc: return _err(exc) - Adapter method that calls the remote client to perform the undo action.
def undo(self) -> dict[str, Any]: return self._client.call("undo")