disconnect_signal
Removes a signal connection between two nodes in a Godot scene and saves the change to the .tscn file. Use get_node_signals first to confirm the connection exists.
Instructions
Remove a signal connection between two nodes and persist the change in the .tscn. Use get_node_signals first to confirm the connection exists; connect_signal puts it back. Saves automatically. Returns: nodePath, signal, targetNodePath, method and connected, read back from the saved scene: false once the connection is gone, null with a leading warning if that read failed. Errors if the connection does not exist. Errors while a runtime session is live on this project.
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>",
"nodePath": "<nodePath>",
"signal": "<signal>",
"targetNodePath": "<targetNodePath>",
"method": "<method>"
},
"name": "disconnect_signal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | Method name on the target node | |
| signal | Yes | Signal name on the source node | |
| nodePath | Yes | Source node path from scene root | |
| scenePath | Yes | Scene file path relative to the project | |
| projectPath | Yes | Path to the Godot project directory | |
| targetNodePath | Yes | Target node path from scene root |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | ||
| signal | Yes | ||
| nodePath | Yes | ||
| warnings | No | ||
| connected | Yes | Whether the saved scene holds the connection. Null when the scene could not be read back. | |
| targetNodePath | Yes |