Undo and redo
undoStep Roblox Studio's undo history backward or forward to reverse or reapply recent edits. Reverts your own tool-driven changes one call at a time and reports how many steps actually applied.
Instructions
Steps Studio's undo history backwards or forwards.
Every write this server makes is already wrapped in an undo recording, so this reverses your own work as cleanly as the user pressing Ctrl+Z — one tool call is one step. Use it when the user says an edit was wrong, instead of trying to reconstruct the previous state by hand, which is guesswork and usually incomplete.
It reports how many steps actually applied, which is not always what was asked: the stack runs out, and an undo that did nothing otherwise looks exactly like one that worked.
Studio's history covers the whole session, including the user's own edits — undoing more steps than you made will start reverting THEIR work. Undo only what you just did, and only when asked.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | No | How many steps to take. Keep it to what you did yourself. | |
| action | No | 'status' reports what is available without changing anything. | status |
| studioId | No | Target Studio; omit for the active one. |