attach_script
Attach a script from its res:// path to a node in the open scene, with undo support.
Instructions
Attach a script (res:// path) to a node in the open scene (undoable).
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": {
"target": "<target>",
"path": "<path>"
},
"name": "attach_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| target | Yes |