edit_shader
Find and replace text in shader files to modify shader behavior.
Instructions
Edit a shader file by replacing old_text with new_text
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>",
"old_text": "<old_text>",
"new_text": "<new_text>"
},
"name": "edit_shader"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Shader file path | |
| new_text | Yes | Replacement text | |
| old_text | Yes | Text to find and replace |