measure_geometry
Measure widths, lengths, distances, gaps, or overlap between layout shapes returned by query_region. Returns results in microns and database units.
Instructions
Measure a value from shapes previously returned by query_region.
Modes and the number of target_ids they take:
path_width (1), segment_length (1), bend_radius_estimate (1),
centerline_distance (2, bounding-box centers), edge_gap (2, bounding-box gap),
overlap (2, bounding-box overlap area). Results are in microns and database units.
Args:
session_id: Session returned by open_layout.
mode: Measurement mode (see above).
target_ids: Shape ids from query_region.
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": {
"session_id": "<session_id>",
"mode": "<mode>",
"target_ids": "<target_ids>"
},
"name": "measure_geometry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| session_id | Yes | ||
| target_ids | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||