Cook a material package
cook_materialCook .sbs or .mcraft packages into texture maps, .mcmat files, or converted packages, with optional input values and graph selection; source files remain unchanged.
Instructions
Open a Substance Designer .sbs or a MaterialCraft .mcraft package, optionally set its exposed inputs (by id) and pick a graph, then cook it into texture maps, a portable .mcmat and / or a converted package (.sbs ↔ .mcraft). Unsupported nodes are kept as placeholders and listed in warnings. The input is never changed.
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": {
"input_path": "<input_path>"
},
"name": "cook_material"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graph | No | Graph index or name (default: the first). | |
| scene | No | 3D preview object. | material_ball |
| suffix | No | ||
| values | No | Exposed input values by id (see get_material_info). | |
| formats | No | ||
| preview | No | ||
| map_size | No | Pixels of the larger side (a power of two; default: the graph size). | |
| bit_depth | No | ||
| overwrite | No | Replace existing outputs. | |
| input_path | Yes | ||
| map_format | No | png | |
| output_dir | No | Absolute output folder (default: next to the input; required for new files). | |
| output_path | No | Absolute output file for the first format (its extension must match). |