wait_for_signal
Block until a specified signal fires on a node in the running Godot game, then report success or timeout. Use this to sequence automated test steps.
Instructions
Block until a signal is emitted on a node in the running game. Useful for sequencing test steps (e.g., wait for "animation_finished" or "died"). Returns whether the signal was received or the wait timed out. The project must be running via run_interactive.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| signal | Yes | Name of the signal to wait for (e.g., "died", "animation_finished"). | |
| timeout | No | Maximum seconds to wait before timing out (default: 5). | |
| nodePath | Yes | Path to the node emitting the signal (e.g., "Player", "AnimationPlayer"). |