get_layer
Retrieve detailed metadata and optional data statistics or raw values for a napari layer by name, including shape, dtype, scale, and type-specific properties.
Instructions
Get detailed info about a layer, optionally including data.
Always returns metadata (shape, dtype, scale, translate, type-specific
properties). When include_data=True or slicing is provided,
also returns statistics and/or raw data values.
Parameters
name : str
Layer name (exact match).
include_data : bool, default False
If True, include data statistics (min/max/mean/std) and, for
small layers, inline data values.
slicing : str, optional
Numpy-style index string, e.g. "0, :5, :5". Implies
include_data=True.
max_elements : int, default 1000
Maximum number of data elements to return inline. Larger data
is stored and an output_id returned for read_output.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| include_data | No | ||
| slicing | No | ||
| max_elements | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||