Talos docs

shader.write

Since next

[editor or disk] Check a *.shader.wgsl, then save it: errors come back as {code, line, col, message, hint}, nothing written.

Plain text

Answers {hash, cost, variants, params}.

TitleWrite a shader
Mode
Token costabout 148 tokens (listed only when its toolset is enabled)
Toolsetshaders

Arguments

ArgumentTypeRequiredDefaultAllowed valuesDescription
dryRunbooleannoCheck only
materialobjectno{path, params}: also write a .material.json
pathstringyesA *.shader.wgsl file, such as shaders/glow.shader.wgsl.
sourcestringyes//! header lines, then WGSL with fn surface()

Example

An MCP tools/call with the required arguments (placeholders in angle brackets).

{
  "name": "shader.write",
  "arguments": {
    "path": "<path>",
    "source": "<source>"
  }
}