Create or resize the texture
texture_createCreates or resizes a project texture, keeping old pixels at the top-left and optionally updating the UV size.
Instructions
Creates the project texture, or resizes it (the canvas grows or shrinks and old pixels stay at the top-left). Also sets the project UV size unless set_uv_size is false.
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": "texture_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fill | No | "#rrggbb", "#rrggbbaa", or "clear" / null for transparent | |
| name | No | Texture name for a new texture, for example "sword.png". | |
| width | No | Default the project UV width. | |
| height | No | Default the width. | |
| keep_pixels | No | Keep the old pixels when resizing. Default true. | |
| set_uv_size | No | Also set the project UV size. Default true. |