Get model metadata
get_metadataFetch metadata from GGUF or safetensors model files. Filter keys by substring and receive compact summaries of large arrays, avoiding context flooding.
Instructions
The model's metadata key-value store (GGUF) or metadata block (safetensors). Large arrays arrive as {count, sample} summaries and long strings are truncated, so tokenizer vocabularies can't flood the context. Filter keys by substring (e.g. 'tokenizer' or 'rope').
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": "get_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to a .gguf or .safetensors file, a *.safetensors.index.json, or a model directory | |
| filter | No | Case-insensitive substring to filter metadata keys |