Undo Last Action
revit_undo_lastUndo the last MCP action in Revit through Revit's own undo command, and specify the document when multiple models are open.
Instructions
Undo the last MCP action in Revit, through Revit's own undo command.
Allowed only when the target document is active, no command is pending in Revit, and
Revit's last undo entry is still the one this session recorded. Otherwise the action
result carries a clear refusal reason instead of running.
Pass document to address a specific open model when several are open; an unknown or ambiguous reference is rejected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | No | Case-insensitive substring of the target open document's title or file name. Required to disambiguate when the Revit process has more than one document open; omit only when a single document is open (the active document is used). An unknown or ambiguous reference is rejected before any change. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||