attach_script
Need to add a script to a node in Godot? Provide the node path and script path to attach the existing script resource directly in the scene.
Instructions
Attach an existing script resource to a node in the edited 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": {
"node_path": "<node_path>",
"script_path": "<script_path>"
},
"name": "attach_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_path | Yes | ||
| script_path | Yes |