connect_signal
Connect a signal from a source node to a method on a target node in a Godot scene by providing the .tscn file path, signal name, and node paths.
Instructions
Connect a signal between nodes.
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": {
"scene_path": "<scene_path>",
"signal": "<signal>",
"from_node": "<from_node>",
"to_node": "<to_node>",
"method_name": "<method_name>"
},
"name": "connect_signal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flags | No | Connection flags | |
| signal | Yes | Signal name (e.g. "body_entered", "pressed") | |
| to_node | Yes | Target node path | |
| unbinds | No | Number of unbinds | |
| from_node | Yes | Source node path | |
| scene_path | Yes | Path to .tscn file | |
| method_name | Yes | Method name on target (e.g. "_on_body_entered") |