List local models / explain a selector
ollama_modelsList installed Ollama models with capabilities, context window, size, and load status. Filter by capability or resident-only, refresh after pulling, and dry-run selectors to see the resolution trail.
Instructions
List the models installed on the Ollama host with their capabilities, context window, size and whether they are currently loaded. Filter with capability or resident_only; pass refresh after pulling a new model. Pass explain_selector to dry-run the model resolver — it reports exactly which model a selector would run and the full fallback chain, without spending a generation. Start there whenever routing surprises you.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | Override the base URL of the local inference server for this call only, e.g. "http://localhost:11434". Omit to use the configured host. | |
| detail | No | Response verbosity. "concise" returns the answer plus minimal provenance; "detailed" adds the resolution trail, token counts, timings and warnings. Default is the configured value. | |
| refresh | No | Bypass the cached registry snapshot and re-query the local server. Use after pulling a model. | |
| capability | No | Only list models advertising ALL of these capabilities, e.g. ["vision","tools"]. Capability names come from the local server and are not a fixed set. | |
| timeout_ms | No | Per-request timeout in milliseconds. Large models on a cold load can take tens of seconds before the first token, so prefer generous values over retrying. | |
| resident_only | No | Only list models currently loaded in VRAM. These answer without paying a load. | |
| explain_selector | No | Dry-run a selector string (literal name, "role:NAME", or "caps:a+b") and return the resolution trail — every link tried and why it was accepted or rejected — without running inference. Use this to debug a selector before dispatching with it. |