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').
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 |