create_script
Create a new GDScript file at a res:// path, optionally add initial code, and attach it to a node. Use it to add scripted behavior during Godot AI-driven development.
Instructions
Create a new GDScript file, optionally with initial content and optionally attach it to a node.
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>"
},
"name": "create_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | res:// path for the new script | |
| content | No | Initial source code content | |
| attach_to | No | Node path to attach the script to |