runtime_assert
Validate live Godot runtime: node properties, scene hierarchy, on-screen text, performance, and screenshot comparisons. Use assertions to catch issues in running games.
Instructions
运行时断言:在运行中的游戏上验证节点状态/场景结构/屏幕文本/性能/截图对比。agent 可任意时刻调用,不必走 workflow.dev_loop。全部依赖 game-bridge(需先 game_bridge_install + 游戏运行中)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | node_state: 节点路径(如 /root/Main/Player) | |
| text | No | screen_text: 要查找的文本 | |
| nodes | No | scene_structure: 期望的节点列表 | |
| action | Yes | 断言类型 | |
| expect | No | node_state: 期望的属性键值对(如 {"health": 100, "position": {"x": 0}}) | |
| present | No | screen_text: true=断言文本存在(默认),false=断言不存在 | |
| baseline | No | perf: 期望的性能基线(如 {"fps": 60}) | |
| reference | No | screenshot_diff: 参考截图路径(res:// 或绝对路径) | |
| threshold | No | screenshot_diff: 相似度阈值(0-1,默认 0.85) | |
| tolerance | No | node_state/perf: 数值容差(默认 0,精确匹配) | |
| project_path | No | 项目路径(可选) |