create_shader
Creates a new Godot shader file at a specified res:// path, with optional GLSL code and shader type, enabling shader assets to be added to a project.
Instructions
Create a new 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>"
},
"name": "create_shader"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Initial GLSL shader code | |
| path | Yes | res:// path for the shader file | |
| type | No | Shader type (spatial, canvas_item, particles) |