bundleShader
Inlines only the shader library symbols a program uses and their dependencies, with upstream and technique credits; returns source and writes back only when write:true is set.
Instructions
Inline only the shader library symbols used by a program and their dependencies, with upstream and technique credits. Return source; write back only with explicit write: true.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "bundleShader"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Existing shader file inside SHADE_EFFECTS_DIR or SHADE_PROJECT_ROOT. Relative paths use the project root. | |
| write | No | Write the bundled source back to file only when explicitly true. Requires file input. | |
| source | No | Shader source text. Provide exactly one of source or file. | |
| language | No | Required for source text; otherwise inferred from .wgsl, .glsl, .frag or .vert. |