connect_signal
Connect a signal from one node to a method on another node and persist the connection in a Godot scene.
Instructions
Persist a signal connection from one node to a method on another node in the same 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>",
"fromNode": "<fromNode>",
"signalName": "<signalName>",
"toNode": "<toNode>",
"method": "<method>"
},
"name": "connect_signal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Path to the Godot project directory | |
| scenePath | Yes | Path to the scene file | |
| fromNode | Yes | Path to the emitting node | |
| signalName | Yes | Signal name (e.g. pressed, body_entered) | |
| toNode | Yes | Path to the receiving node | |
| method | Yes | Method name to call on the receiver |