disconnect_signal
Remove an existing signal connection between two nodes, saving the change automatically. Confirms the disconnected signal and target when successful, or returns an error if the connection does not exist.
Instructions
Remove an existing signal connection between two nodes, persisting the change in the .tscn. Use get_node_signals first to confirm the connection exists; recovery requires reconnecting via connect_signal. Saves automatically. Returns a plain-text confirmation naming the disconnected signal and target. Errors if the connection does not exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Path to the Godot project directory | |
| scenePath | Yes | Scene file path relative to the project | |
| nodePath | Yes | Source node path from scene root | |
| signal | Yes | Signal name on the source node | |
| targetNodePath | Yes | Target node path from scene root | |
| method | Yes | Method name on the target node |