create_shader
Create a new shader resource in your Godot project by specifying file path, shader type, and initial code.
Instructions
Create a new Shader resource
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 |
|---|---|---|---|
| path | Yes | File path for the shader (e.g. 'res://shaders/outline.gdshader') | |
| type | No | Shader type: visual/canvas_item (2D), spatial (3D), particles, sky, fog, texture_blit (default: canvas_item) | canvas_item |
| content | No | Initial shader code |