compute_io_cortical_id
Compute the canonical base64 IPU/OPU cortical id and config flag for a sensorimotor IO unit from its subtype, variant, framing, and indices, without probing a live brain.
Instructions
Derive the canonical 8-byte IPU/OPU cortical id for a sensorimotor unit (no live call).
Mirrors the Rust feagi-sensorimotor id derivation so a caller (e.g. a Trainer binding
profile, or before create_cortical_area) gets the exact base64 wire id and configuration
flag a count/percentage IO unit resolves to — without probing a live brain or reverse-
engineering bytes. This is the inverse of decode_cortical_id.
Args:
subtype: 4-char cortical_subtype (e.g. icnt count input, ocnt count output);
first char selects input (i) vs output (o).
variant: Configuration variant (default percentage; also boolean,
percentage_2d/3d/4d, signed_percentage*, cartesian_plane, misc).
framing: absolute or incremental.
positioning: linear or fractional (percentage-family variants only).
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).
Returns:
{"ok": True, "cortical_id": <base64>, "config_flag": <int>, ...} or
{"ok": False, "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": {
"subtype": "<subtype>"
},
"name": "compute_io_cortical_id"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| framing | No | absolute | |
| subtype | Yes | ||
| variant | No | percentage | |
| unit_index | No | ||
| positioning | No | linear | |
| subunit_index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||