signal-connect
Creates a signal connection between source and target nodes in a Godot scene. Wire up button clicks, collision events, or custom signals to trigger methods.
Instructions
[compact alias of connect_signal] Creates a signal connection between nodes in a scene. Prerequisite: source and target nodes must exist. Use to wire up button clicks, collision events, custom signals. Saved to scene file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. | |
| scenePath | Yes | Path to .tscn file (e.g., "scenes/ui/menu.tscn") | |
| sourceNodePath | Yes | Emitting node path (e.g., "StartButton", "Player/Area2D") | |
| signalName | Yes | Signal name (e.g., "pressed", "body_entered", "health_changed") | |
| targetNodePath | Yes | Receiving node path (e.g., ".", "Player", "../GameManager") | |
| methodName | Yes | Method to call on target (e.g., "_on_start_pressed", "take_damage") | |
| flags | No | Optional: connection flags (0=default, 1=deferred, 2=persist, 4=one_shot) |