Set Raster Style
set_raster_styleSet raster symbology in QGIS by choosing pseudocolor, grayscale, RGB, or hillshade styles, with color ramps, classification, and contrast controls.
Instructions
Set raster symbology. style_type: 'singleband_pseudocolor' (color ramp over one band), 'singleband_gray', 'multiband_color' (RGB), 'hillshade'. min_value/max_value default to the band statistics. color_ramp: QGIS ramp name (e.g. 'Viridis', 'Spectral', 'RdYlGn'). classification: continuous|equal_interval|quantile. interpolation: interpolated|discrete|exact. gradient (gray): black_to_white|white_to_black. contrast: none|stretch|clip|stretch_clip. hillshade uses band, azimuth, altitude, z_factor.
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": {
"layer_id": "<layer_id>",
"style_type": "<style_type>"
},
"name": "set_raster_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| band | No | ||
| azimuth | No | ||
| classes | No | ||
| altitude | No | ||
| contrast | No | stretch | |
| gradient | No | black_to_white | |
| layer_id | Yes | ||
| red_band | No | ||
| z_factor | No | ||
| blue_band | No | ||
| max_value | No | ||
| min_value | No | ||
| color_ramp | No | Viridis | |
| green_band | No | ||
| style_type | Yes | ||
| interpolation | No | interpolated | |
| classification | No | continuous |