write_shader
Writes shader code to a Godot .gdshader file, with optional backup, enabling direct creation or updates of shaders in a Godot project.
Instructions
Write content to a .gdshader.
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>",
"content": "<content>"
},
"name": "write_shader"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to .gdshader file (relative to project root) | |
| content | Yes | New shader content | |
| create_backup | No | Create .bak backup (default: true) |