connect_signal
Connects a Godot scene node's signal to a target node's method, allowing events to trigger code across nodes.
Instructions
Connect a signal from one node to a method on another node in a scene
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>",
"sourceNode": "<sourceNode>",
"signalName": "<signalName>",
"targetNode": "<targetNode>",
"methodName": "<methodName>"
},
"name": "connect_signal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scenePath | Yes | Scene file relative to project | |
| methodName | Yes | Method name on the target, e.g. _on_button_pressed | |
| signalName | Yes | Signal name, e.g. pressed | |
| sourceNode | Yes | Emitting node path like root/Button | |
| targetNode | Yes | Receiving node path like root/Main | |
| projectPath | Yes | Path to the Godot project directory |