signal-connect
Connects signals between Godot scene nodes to wire button clicks, collisions, or custom events to target methods. Requires existing source and target nodes and saves the connection to the scene file.
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 |
|---|---|---|---|
| flags | No | Optional: connection flags (0=default, 1=deferred, 2=persist, 4=one_shot) | |
| scenePath | Yes | Path to .tscn file (e.g., "scenes/ui/menu.tscn") | |
| methodName | Yes | Method to call on target (e.g., "_on_start_pressed", "take_damage") | |
| signalName | Yes | Signal name (e.g., "pressed", "body_entered", "health_changed") | |
| projectPath | Yes | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. | |
| sourceNodePath | Yes | Emitting node path (e.g., "StartButton", "Player/Area2D") | |
| targetNodePath | Yes | Receiving node path (e.g., ".", "Player", "../GameManager") |