photoshop_undo
Revert the last edit or a short run of edits in the active Photoshop document by stepping back through history. Reversible with redo while those states remain.
Instructions
Step the active document back through history (Ctrl/Cmd+Z). Each call moves the active history state earlier by steps (default 1).
Users often say: undo, geri al, ctrl z, cmd z, son değişikliği geri al. Use when: reverting the last edit or a short run of edits. Do NOT use when: you need to reapply an undone edit — use photoshop_redo. Do NOT use when: you only need to inspect the stack — use photoshop_get_history.
Returns: text confirmation with the step count. Preconditions: active document with history. Side effects: restores an earlier state and drops the current one onto the redo stack. Not idempotent — a second call undoes further. Reversible with photoshop_redo while those states remain.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | No | Number of steps to undo (default: 1) | |
| document_id | Yes | Photoshop document id from photoshop_get_state / photoshop_list_documents. Send null or 0 to use the active document. A positive number activates that document before the tool runs. When no document is open, a stale id does not block the call. |