run_headless_script
Executes GDScript code headlessly against a Godot project for procedural asset or scene generation. Use it to run scripted scene creation without opening the editor.
Instructions
Execute a GDScript body inside func run(tree: SceneTree) headlessly against the project for procedural asset/scene generation.
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": {
"code": "<code>"
},
"name": "run_headless_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| timeoutMs | No | ||
| projectPath | No |