edit_shader
Overwrite an existing Godot shader's GLSL code by supplying its res:// path and new code.
Instructions
Overwrite the GLSL code of an existing shader file.
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>",
"code": "<code>"
},
"name": "edit_shader"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | New shader code | |
| path | Yes | res:// path to the shader |