get_texture_data
Read pixel data from a texture resource, returning base64-encoded bytes with dimensions and format metadata. Supports mip levels, array slices, MSAA samples, and 3D depth slices.
Instructions
Read the pixel data of a texture resource.
Args: resource_id: The resource ID of the texture to read mip: Mip level to retrieve (default: 0) slice: Array slice or cube face index (default: 0) For cube maps: 0=X+, 1=X-, 2=Y+, 3=Y-, 4=Z+, 5=Z- sample: MSAA sample index (default: 0) depth_slice: For 3D textures only, extract a specific depth slice (default: None = full volume) When specified, returns only the 2D slice at that depth index
Returns texture pixel data as base64-encoded bytes along with metadata including dimensions at the requested mip level and format information.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mip | No | ||
| slice | No | ||
| sample | No | ||
| depth_slice | No | ||
| resource_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||