bake_texture
Bakes materials, lighting, normals, roughness, or ambient occlusion into an image texture on a target mesh using Cycles, with optional PNG export to disk.
Instructions
Bake materials, lighting, normals, roughness, or ambient occlusion into an image texture for a target mesh object using Cycles rendering engine. Supports saving to disk.
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": {
"object_name": "<object_name>"
},
"name": "bake_texture"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Bake image width in pixels (64 to 8192). | |
| height | No | Bake image height in pixels (64 to 8192). | |
| margin | No | Pixel margin around baked UV islands (0 to 64). | |
| task_id | No | Optional task or workflow identifier. | |
| approved | No | DEPRECATED / UNTRUSTED: Client-supplied approval flags in tool arguments are not trusted as proof of human consent. | |
| bake_type | No | Type of bake pass to perform. | COMBINED |
| image_name | No | Target image datablock name. Created if not already existing. | |
| object_name | Yes | Name of the target mesh object with valid UV coordinates. | |
| save_filepath | No | Optional file path to write the baked PNG image to disk. | |
| use_selected_to_active | No | Whether to bake from selected objects to the active object. |