editor_attach_script
Attach a script to a node in the Godot editor by providing node path and script path, enabling direct assignment of behavior.
Instructions
Attach a script to a node in the editor.
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": {
"path": "<path>",
"script": "<script>"
},
"name": "editor_attach_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Node path | |
| script | Yes | Script path to attach |