set_port_encoding
Set or clear a brain region port's author encoding when no IO area feeds it directly; clear it to resume wiring-based derivation.
Instructions
Set or clear the author encoding of a designated port of a brain region.
FEAGI derives a port's encoding from IO areas wired directly across the region boundary
(source: wiring); set one only for a port no IO area feeds directly. An author entry is
never overwritten by wiring. clear=True removes it so derivation resumes. The area must
already be a designated input or output (409 otherwise). Read entries under
port_encoding in get_brain_regions or get_region_circuit.
Args:
region_id: Brain region id (from get_brain_regions).
area: Designated port area id or exact name.
kind: Data type: Boolean, Percentage, Percentage2D/3D/4D, SignedPercentage,
SignedPercentage2D/3D/4D, CartesianPlane, Misc or PoseEstimation.
signed: Whether negative values are allowed.
frame: Absolute (value) or Incremental (change).
positioning: Linear or Fractional (bin layout).
clear: Remove the author entry; no other field may be given.
Returns:
{region_id, area_id, cleared, port_encoding}: the region's resulting entry for the
port (kind, signed, frame, positioning, source), or null.
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": {
"region_id": "<region_id>",
"area": "<area>"
},
"name": "set_port_encoding"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | Yes | ||
| kind | No | ||
| clear | No | ||
| frame | No | ||
| signed | No | ||
| region_id | Yes | ||
| positioning | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||