runtime
Manage Godot project operations: launch the editor, start or stop the project, fetch debug output, run tests, check the Godot version, and record or replay gameplay events.
Instructions
启动编辑器、运行/停止项目、获取调试输出、运行测试、获取 Godot 版本。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| speed | No | 录制:回放速度倍率(默认 1.0) | |
| action | Yes | 操作类型 | |
| timeout | No | 自动停止秒数(默认 30。游戏冷启动 >30s 的项目传更大值如 120;wait_for_bridge 时自动取 max(bridge_timeout+10, timeout) 防与 bridge 就绪 race) | |
| file_name | No | 录制保存:始终自动命名 recording_YYYYMMDD_HHmmss.json(file_name 入参被忽略);但 file_name 须匹配 recording_*.json 格式(否则 INVALID_FILE_NAME),禁止含 / \\ .. | |
| quit_flag | No | run_tests 的 GUT 退出标志。默认 gquit(GUT ≤9.5);GUT 9.6+ 移除 -gquit(报 Unknown arguments: -gquit)时切 gexit | gquit |
| godot_path | No | 覆盖 Godot 二进制路径(可选,优先于项目配置和环境变量) | |
| events_json | No | 录制:JSON 格式的事件序列字符串 | |
| test_script | No | 测试脚本或目录路径(默认 res://test/) | res://test/ |
| project_path | No | Godot 项目目录路径(可选,默认使用 GODOT_PROJECT_PATH 环境变量或当前目录) | |
| bridge_timeout | No | wait_for_bridge 轮询总预算(秒,默认 10) | |
| load_autoloads | No | 是否加载 Autoload 上下文(默认 true) | |
| wait_for_bridge | No | true 时 spawn 后轮询 bridge 就绪(默认 false,向后兼容) |