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.
Input Schema
TableJSON 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")