connect_signal
Connects a signal from a source node to a target node's method in a Godot scene.
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>",
"targetNode": "<targetNode>",
"signalName": "<signalName>",
"methodName": "<methodName>"
},
"name": "connect_signal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Path to the Godot project directory | |
| scenePath | Yes | Scene file path (relative to project) | |
| sourceNode | Yes | Node path of the signal source (e.g. root/Button) | |
| targetNode | Yes | Node path of the signal target (e.g. root) | |
| signalName | Yes | Name of the signal (e.g. pressed, body_entered) | |
| methodName | Yes | Name of the method to call on target (e.g. _on_button_pressed) |