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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectPath": "<projectPath>",
"scenePath": "<scenePath>",
"sourceNodePath": "<sourceNodePath>",
"signalName": "<signalName>",
"targetNodePath": "<targetNodePath>",
"methodName": "<methodName>"
},
"name": "signal-connect"
}
}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") |