close_session
Restore the game to its original state by unloading hooks, disconnecting injection, and closing the index. Returns success only if all steps succeed; otherwise keeps session for retry.
Instructions
关闭当前会话:卸载所有 Hook、断开注入、关闭索引。只有真的恢复原状才 ok=true。
任一步失败会 ok=false + error,并保留会话以便重试 —— 这是有意的:
本工具的语义是「游戏已恢复原状」,一个假成功会让你带着仍被篡改的游戏收工。
做完了就调用它,把游戏恢复原状(卸载 Hook 后游戏行为回到未修改状态)。
只有真的恢复成功才返回 ok: True。 卸载 Hook / 卸载脚本 / detach
任何一步失败都会 ok: False + error,并保留会话以便重试 ——
这是有意为之:本工具的语义是「游戏已恢复原状」,
一个假成功会让 Agent 带着仍被篡改的游戏进程收工。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| close_index | No | ||
| close_runtime | No |