scale_morphology_rows
Create a new pattern morphology by scaling destination z rows around a base, with a dry-run preview of old/new z values and clamping for out-of-strip rows.
Instructions
Create a NEW pattern morphology with its destination z rows scaled about a base.
Rows group by destination (x, y); z' = half_up(base + gain * (z - base)) with base
defaulting to the group's row for source bin 0 (base_z overrides). The source bin axis is
src_axis or the single varying source coordinate. The strip is 0..depth-1 from
dst_depth or dst_area. A used bin (used_src_bins) outside the strip refuses the
call and lists it; unused rows outside are stored clamped and flagged. dry_run (default)
returns only the table: old z, new z, in-strip or clamped, used, and the largest gain with no
clamp over the used bins. A real run never edits the source morphology or any mapping;
rebind with update_cortical_mapping. Refuses non-pattern morphologies, wildcard
coordinates and an existing new_name.
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": {
"morphology_name": "<morphology_name>",
"gain": "<gain>",
"new_name": "<new_name>",
"used_src_bins": "<used_src_bins>"
},
"name": "scale_morphology_rows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gain | Yes | ||
| base_z | No | ||
| dry_run | No | ||
| dst_area | No | ||
| new_name | Yes | ||
| src_axis | No | ||
| dst_depth | No | ||
| used_src_bins | Yes | ||
| morphology_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||