apply_to_layers
Apply property changes (visible, opacity, colormap, etc.) to layers filtered by type or name pattern.
Instructions
Apply property changes to multiple layers matching a filter.
Parameters
filter_type : str, optional
Layer type name to match (e.g., "Image", "Labels", "Points").
filter_pattern : str, optional
Glob pattern matched against layer names (e.g., "seg_*").
properties : dict, optional
Properties to set on matched layers. Supported keys: visible,
opacity, colormap, blending, contrast_limits,
gamma, new_name (renames by appending a suffix is NOT
supported — use set_layer_properties individually).
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": "apply_to_layers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter_type | No | ||
| filter_pattern | No | ||
| properties | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||