read_shader
Read a .gdshader file from a Godot project to inspect shader code. Optionally specify starting line and line count to read a specific range.
Instructions
Read a .gdshader 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 | Path to .gdshader file (relative to project root) | |
| line_count | No | Number of lines to read (optional) | |
| line_start | No | Starting line (1-indexed, optional) |