List tensors
list_tensorsInspect tensor names, shapes, and storage types in local GGUF or safetensors model files. Filter results by substring to focus on specific layers or components.
Instructions
Tensor names, shapes, and storage types inside a model file. Filter by substring (e.g. 'attn' or 'blk.0').
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": {
"path": "<path>"
},
"name": "list_tensors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to a .gguf or .safetensors file, a *.safetensors.index.json, or a model directory | |
| limit | No | Max tensors to return | |
| filter | No | Case-insensitive substring to filter tensor names |