preview_texture_2d
Render a flat 2D PNG preview of a procedural or image-based texture to inspect its colors and pattern before using it in a design.
Instructions
Render a flat 2D preview of a texture as a PNG image.
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": "preview_texture_2d"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Random seed for reproducibility. Default: 42. | |
| size | No | Image size in pixels (square). Max 1024. Default: 512. | |
| scale | No | Texture scale multiplier (default 1.0). Default: 1.0. | |
| style | No | Heightmap style — ``"posterized"``, ``"sharp"``, or ``"soft"`` (image mode). Default: "posterized". | |
| preset | No | Name of a built-in preset palette (e.g. ``"woodland"``). | |
| texture | No | Texture name (procedural or geometric). | |
| image_path | No | Path to a photo for image-based mode. | |
| num_colors | No | Number of color zones (2-8). Default: 4. | |
| output_path | No | Where to save the PNG. If empty, a fresh file in the system temp directory, one per call. A path that already exists is refused (``OUTPUT_EXISTS``), never written over. Default: "". | |
| tile_size_mm | No | Physical tile size in mm (image mode). Default: 40.0. | |
| color_palette | No | Custom hex colors (e.g. ``["#FF0000", "#00FF00"]``). |