godot_create_shader
Create shader files in Godot projects using starter templates or custom code to implement visual effects for game development.
Instructions
Create a .gdshader file inside the Godot project, either from a starter template or explicit shader code.
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": {
"project_path": "<project_path>",
"shader_name": "<shader_name>"
},
"name": "godot_create_shader"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | Path to the Godot project directory or its project.godot file. | |
| shader_name | Yes | Human-friendly shader name or filename, for example 'Water Ripple' or 'water_ripple.gdshader'. | |
| folder | No | Project-relative folder where the shader should be saved. | shaders |
| shader_type | No | Shader type for the generated template, such as canvas_item, spatial, particles, sky, or fog. | canvas_item |
| shader_code | No | Optional explicit shader source. When omitted, a starter template is generated. | |
| overwrite | No | Whether to replace an existing shader file with the same normalized name. |