snapshot_restore
Restore a workspace to a specific snapshot using its SHA, requiring explicit human confirmation before executing this destructive operation.
Instructions
恢复工作区到指定快照。🔴 破坏性,必须 human_confirmed:true。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha | Yes | 目标快照 SHA(完整或 ≥4 位短前缀——用 snapshot_list 查时间线) | |
| comment | No | 决策备注(写入 decision-log) | |
| project_dir | No | 项目根目录(可选——默认当前工作目录) | |
| human_confirmed | No | 🔴 人工确认:false/缺省=挂起等人审(默认);true=执行恢复。破坏性操作不允许自动执行 |