validation
Run headless Godot tests, analyze runtime errors, validate scenes/scripts/resources, and import assets. Execute a full verification workflow or individual checks on demand.
Instructions
运行验证、分析错误、验证项目/脚本、导入资源。一键 headless 运行 + 错误分析,或按需单项检查。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene | No | 可选场景文件路径(run_and_verify) | |
| scope | No | 验证范围(verify_delivery 必填): scene/script/full。其他 action 忽略 | |
| action | Yes | 操作类型 | |
| output | No | Godot 运行时输出全文(analyze_error) | |
| scripts | No | 要验证的脚本路径数组(相对项目)。省略则扫描全部 .gd 文件 | |
| timeout | No | 超时秒数(默认 20) | |
| directory | No | 扫描目录(相对项目,如 "assets/ui") | |
| recursive | No | 递归扫描子目录(默认 true) | |
| extensions | No | 导入文件扩展名(默认常见图片/音频/字体类型) | |
| godot_path | No | 覆盖 Godot 二进制路径(可选,优先于项目配置和环境变量) | |
| scene_path | No | 场景路径(scope=scene,相对项目,verify_delivery) | |
| script_path | No | 脚本路径(scope=script,相对项目,verify_delivery) | |
| capture_tree | No | 同时捕获场景树快照(默认 false) | |
| check_scenes | No | 验证场景文件结构(默认 true) | |
| project_path | No | Godot 项目目录路径(可选,默认使用 GODOT_PROJECT_PATH 环境变量或当前目录) | |
| check_scripts | No | 检查断裂脚本引用(默认 true) | |
| exclude_paths | No | 排除的目录路径(相对项目根)。默认排除:.godot, .import | |
| check_resources | No | 检查缺失资源文件(默认 true) |