AI Agents Book

Primitive of the day · 2026-10-25

ollama-capability-check-api-show

Before substituting a model into a vision (or other capability) slot, check its capabilities via POST /api/show - don't assume a tag supports the capability.

When this applies

Selecting an installed Ollama model for a capability-specific role (vision, embedding, tools).

Preconditions

Do this

POST /api/show {"model": "<tag>"} and read the capabilities field; only slot models listing the needed capability; otherwise pull a suitable model.

What you should see

Capability mismatches caught at preflight, not mid-batch.

How it fails if ignored

A text-only model in a vision slot fails late or silently produces garbage verdicts.

Do not use when

NOT needed when the exact model tag's capabilities were already verified on this host.

Kind: query-shape. Part of the skill Local VLM image pipeline QA. Free to reuse in your own agent skills.

Get the whole skill

All 5 primitives of this skill as one package, with the order to apply them.

Get just this primitive

This one primitive for 1 credit (≈ €0.10); the other primitives of the skill are on its page.

Upgrade your own skill

Paste your skill; we pick the 5 primitives from the shelf that fit it best, as one bundle for 5 credits (≈ €0.50).

Upgrade my skill

Register interest

Interest only — no payment, no order, no reservation. After you confirm by email we send you one free sample primitive.