Find layers
find_layersSearch a PyTorch model's layers by type, name regex, scope prefix or augmentation, and optionally rank them by parameter count to locate and compare components.
Instructions
Search layers by type, name regex, scope prefix or augmentation; optionally rank by params.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "find_layers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | e.g. "conv2d". | |
| limit | No | Page size. | |
| scope | No | Prefix, e.g. "encoder.layer.3". | |
| cursor | No | Previous nextCursor. | |
| model_path | No | File, zoo:<id>, hf:<org/name> | |
| namePattern | No | Regex on name. | |
| augmentation | No | e.g. "freeze". | |
| model_source | No | Optional: answer about model text passed inline (a .neurarch.json document or PyTorch source). | |
| sortByParams | No | Largest first. | |
| response_format | No | Default concise. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| layers | Yes | ||
| nextCursor | Yes |