project_close
Close a project window, returning to the home screen; unsaved edits block closure unless saved first or discard_changes=true is set.
Instructions
关闭一个工程窗口(等同工具栏「回到首页」)。有未保存改动时默认拒绝,先 save_project;确实要丢弃改动才传 discard_changes=true。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance_id | No | 官方 list_instances 返回的 instance_id,与 project_path 二选一。 | |
| project_path | No | 目标工程的绝对路径。与 instance_id 二选一;只开了一个工程窗口时都可省略。 | |
| discard_changes | No | 丢弃未保存改动直接关闭。 |