tc_restore
Restore a previous task checkpoint by index or change ID; preview changes before applying to the workspace.
Instructions
按任务层序号或变更层编号恢复。index 与 drift_id 二选一;apply=false 只预览。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | Yes | 工作区根目录 | |
| apply | No | true 才写工作区 | |
| index | No | 任务层序号 | |
| drift_id | No | 变更层编号,例如 d0001 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | Yes | ||
| applied | Yes | ||
| recovered | Yes | 本次自动保全的变更层编号 | |
| skipped_paths | Yes | skipped paths (e.g. symlinks pointing outside the workspace) |