# 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] {"Provide model instructions, contextual state, and inline renderers to assistant-ui runtimes."} {"Register and manage assistant-ui model context providers that contribute instructions and app state."}