read_shader
Retrieves the GLSL source code of a Godot shader file from a res:// path so you can inspect and modify shader logic.
Instructions
Read the GLSL source of a 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": "read_shader"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | res:// path to the shader |