# Model Context API Reference
URL: /docs/api-reference/model-context

Model instructions, contextual state, provider registries, and renderers for giving assistant-ui runtimes app-aware context.

{/* AUTO-GENERATED PAGE by scripts/generate-api-reference.mts */}

{/* The page list is generated from exported APIs; edit only the manual prose slot. */}

{/* api-manual:start */}

Model context is the layer that tells the assistant what the surrounding app knows. Use it to contribute instructions, register contextual providers, and keep model-facing state close to the React components that own it.

{/* api-manual:end */}

## Pages \[#pages]

<Cards>
  <Card title="&#x22;Model Context&#x22;" href="&#x22;/docs/api-reference/model-context/context&#x22;">
    {"Provide model instructions, contextual state, and inline renderers to assistant-ui runtimes."}
  </Card>

  <Card title="&#x22;Model Context Registry&#x22;" href="&#x22;/docs/api-reference/model-context/registry&#x22;">
    {"Register and manage assistant-ui model context providers that contribute instructions and app state."}
  </Card>
</Cards>
