list_cells
Retrieve cells in a KLayout layout hierarchy by depth, sorted by name, with bounding boxes, top-cell status, child instance counts, and shape counts.
Instructions
List cells in the layout hierarchy, sorted by name.
Each entry has the cell bounding box in microns, whether it is a top cell, its direct child instance count, and its direct shape count.
Args:
session_id: Session returned by open_layout.
max_depth: Only include cells within this many levels of a top cell (0 = top cells
only, 1 = top cells and their direct children). Omit to list every cell.
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>"
},
"name": "list_cells"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_depth | No | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||