get_cop_layer
Read image layer data from a COP node, inspect cable output wires, and optionally check per-pixel wire-sum statistics such as blend-weight totals.
Instructions
Get image layer data from a COP node.
A cable output (more than one wire) answers is_cable and wires (name,
data type and each wire's layer summary); copernicus_layer is the wire
named by wire (index or name, default the first), see layer_read.
wire_sum=True adds min/max/average of the per-pixel sum of the
one-channel wires, e.g. to check that blend weights sum to 1.
Args: node_path: Path to the COP node. output_index: Output connector index. wire: On a cable output, the wire to read (index or name). wire_sum: On a cable output, stats of the per-pixel sum of its wires.
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": {
"node_path": "<node_path>"
},
"name": "get_cop_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wire | No | ||
| wire_sum | No | ||
| node_path | Yes | ||
| output_index | No |