render_raster_layer_png
Convert attached raster layers or GeoTIFFs into PNG previews, auto-stretching single-band rasters and using the first three bands for multiband images.
Instructions
Decode an attached raster layer (or a GeoTIFF on disk) into a PNG preview. Single-band rasters are auto-stretched to grayscale; multi-band rasters use the first three bands. Returns base64 PNG bytes; pass output_path to also write to disk.
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": "render_raster_layer_png"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| path | No | ||
| max_width | No | ||
| max_height | No | ||
| output_path | No |