verge3d_compress_ktx2
Compress PNG or JPEG textures into GPU-ready KTX2 files for Verge3D WebGL/WebXR assets, choosing UASTC or ETC1S encoding and optional mipmap generation.
Instructions
Compress a PNG or JPEG texture into GPU-ready KTX2 format using Verge3D's bundled toktx encoder.
Args: input_path: Path to input PNG/JPEG texture. output_path: Optional destination .ktx2 path (defaults to same path with .ktx2 extension). method: 'UASTC' (higher quality, Zstandard supercompressed) or 'ETC1S' (smaller file size). generate_mipmaps: Generate mipmap chain (recommended True).
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": "verge3d_compress_ktx2"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | UASTC | |
| input_path | Yes | ||
| output_path | No | ||
| generate_mipmaps | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |