attach_script_to_node
Attach or detach a script to a node in a Godot scene to control its behavior.
Instructions
Attach a Godot script to a 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>",
"nodePath": "<nodePath>",
"scriptPath": "<scriptPath>"
},
"name": "attach_script_to_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | ||
| scenePath | Yes | ||
| nodePath | Yes | Path to target node | |
| scriptPath | Yes | Path to the script, or empty to detach |