Before calling any skill in this module: if you are about to call a skill with parameters guessed from its name or description, STOP — read this file (or fetch its schema via
GET /skills/recommend?includeSchema=true) first. If you already have the parameter definitions from recommend/schema, you may proceed straight to dryRun.
Triggers
- Reviewing or navigating undo history
- Stepping undo/redo
- Auditing what changed
- View or browse undo history, step-by-step undo/redo, review changes
Manage Unity Editor undo/redo history.
Operating Mode
This module history_get_current(read-only) marked SkillMode.SemiAuto, can be executed directly in all three tiers;history_undo / history_redo changes the scene state, is the default SkillMode.FullAuto(Operation=Execute), and requires grant in Approval mode.Does not include the NeverInSemi high-risk skill。
history_undo / history_redo replay Unity's own native Undo/Redo stack, whose contents cannot be classified by write category the way workflow module's task snapshots can, so unlike workflow_undo_task / workflow_session_undo they carry no payload-level SURFACE_EXCLUDED check.
DO NOT (common hallucinations):
history_list/history_getdo not exist → usehistory_get_currentfor current undo grouphistory_cleardoes not exist → Unity undo history cannot be cleared via APIhistory_savedoes not exist → undo history is managed by Unity automatically
Routing:
- For simple undo/redo →
history_undo/history_redo(this module) oreditor_undo/editor_redo - For persistent task-level undo → use
workflowmodule - For conversation-level undo → use
workflowmodule'sworkflow_session_undo
Skills
history_undo
Undo the last operation (or multiple steps).
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| steps | int | No | 1 | Number of undo steps to perform |
Returns: { success, undoneSteps }
history_redo
Redo the last undone operation (or multiple steps).
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| steps | int | No | 1 | Number of redo steps to perform |
Returns: { success, redoneSteps }
history_get_current
Get the name of the current undo group.
No parameters.
Returns: { success, currentGroup, groupIndex }
Exact Signatures
Exact names, parameters, defaults, and returns are defined by GET /skills/schema or unity_skills.get_skill_schema(), not by this file.