list_layers
Retrieve every layer in a KLayout layout with its layer/datatype, name, and shape count. Use these pairs as layer filters in other KLayout tools.
Instructions
List every layer in the layout with its layer/datatype, name, and shape count.
Use the returned {layer, datatype} pairs as layer filters in other tools.
Args:
session_id: Session returned by open_layout.
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_layers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||