What are capabilities?
Capabilities are a structured declaration of the features, verbs, and limits a provider exposes. They are returned by theGET /capabilities endpoint on any OMP server, and surfaced through mem.capabilities() in the SDK. Rather than hardcoding assumptions about what a provider can do, you query capabilities once and let that answer drive your code path.
Querying capabilities
The SDK caches the capabilities response per session. Subsequent calls to
mem.capabilities() return the cached result without any additional network round-trip.Capabilities response structure
The raw JSON response fromGET /capabilities looks like this:
Field reference
Top-level fieldsfeatures object
limits object