# material.write

> Talos next · Since next

Check a *.material.json, then save it.

Answers every error and warning {code, pointer, message} (textures must exist beside the file as PNG, JPEG or KTX2), resolved factors, maps, notDrawn {standard, hd}. Errors: nothing written.

| | |
|---|---|
| Title | Write a material |
| Mode | `disk` |
| Token cost | about 139 tokens (listed only when its toolset is enabled) |
| Toolset | `materials` |

## Arguments

| Argument | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
| `dryRun` | `boolean` | no |  |  | Check only |
| `material` | `object` | yes |  |  | The file's JSON |
| `path` | `string` | yes |  |  |  |

## Example

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

```json
{
  "name": "material.write",
  "arguments": {
    "material": {},
    "path": "<path>"
  }
}
```
