searchShaderSource
Find matching GLSL code across all effects using a regular expression and return snippets with surrounding context for targeted shader debugging or analysis.
Instructions
Search GLSL source code across all effects with a regular expression. Return matching snippets with context.
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": {
"query": "<query>"
},
"name": "searchShaderSource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum results | |
| query | Yes | Regular expression to search for | |
| context_lines | No | Number of context lines around each match |