create_io_area_for_unit
Provision the exact IPU/OPU area a sensorimotor unit binds to: computes the canonical wire id, creates the matching area, and verifies the server-assigned id.
Instructions
Create the IPU/OPU area a sensorimotor unit binds to, with its canonical id derived.
One call that (1) computes the canonical wire id + configuration flag for the unit (the
same derivation the Rust register functions use), (2) creates the matching IPU/OPU area,
and (3) verifies the server-assigned id equals the computed one. Use this to provision the
exact area a coder (e.g. a Trainer population encoder / class decoder, or a robot device)
will publish to / read from, instead of hand-picking cortical_id +
data_type_configs_by_subunit for create_cortical_area.
Args:
name: Human-readable area name (BV / genome label).
subtype: 4-char cortical_subtype (e.g. icnt count input, ocnt count output).
channels: TOTAL x-width of the area (per-device width sent is
channels // device_count; must divide evenly).
depth: Neuron depth / bins (z-extent); must match the coder's bins. Value-coded units
(Depth Map idpt, Object Segmentation iseg/oseg) are always 1: the
payload is the potential. Build bins with expand_value_to_bins instead.
variant: IO configuration variant (default percentage for the count family).
framing: absolute or incremental.
positioning: linear or fractional.
unit_index: Device / group instance index (bytes 6-7 little-endian u16).
subunit_index: Sub-area index within the unit (flag bits 4-7, 0-15).
device_count: Number of devices for the area.
position: Optional [x, y, z] request (FEAGI may auto-place; see placement).
height: Per-device y-extent (default 1). Planar units such as iimg
cartesian_plane need the image height here: channels is the width,
depth the colour channels (28x28x3 -> channels=28, height=28, depth=3).
Returns:
{"computed_cortical_id", "assigned_cortical_id", "verified", "config_flag", "create_result"} on success, or {"error": ...}.
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": {
"name": "<name>",
"subtype": "<subtype>",
"channels": "<channels>",
"depth": "<depth>"
},
"name": "create_io_area_for_unit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| depth | Yes | ||
| height | No | ||
| framing | No | absolute | |
| subtype | Yes | ||
| variant | No | percentage | |
| channels | Yes | ||
| position | No | ||
| unit_index | No | ||
| positioning | No | linear | |
| device_count | No | ||
| subunit_index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||