# PageContextSnapshot class

> The PageContextSnapshot class of Novior.MentorAgent.Abstractions.Models: Serializable snapshot of the current page context. Sent by WasmMentorPageContext to…

- URL: https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/pagecontextsnapshot
- Verified with: MentorAgent 1.2.0
- Last updated: 2026-10-27
- Packages: Novior.MentorAgent.Abstractions

Serializable snapshot of the current page context. Sent by `WasmMentorPageContext` to `Novior.MentorAgent.Server` before each AI message so the server has the client's page state.

## Definition

Namespace: `Novior.MentorAgent.Abstractions.Models`. Package: `Novior.MentorAgent.Abstractions`.

`public sealed class PageContextSnapshot`

```shell
dotnet add package Novior.MentorAgent.Abstractions
```

## Constructors

`public PageContextSnapshot()`

## Properties

### `ContextData`

`public Dictionary<string, string?> ContextData { get; set; }`

Key-value context data registered by the page.

### `PageName`

`public string? PageName { get; set; }`

Current page name (e.g. "Orders", "Products").

### `UIActions`

`public List<UIActionInfo> UIActions { get; set; }`

UI actions registered by the page (name + description only — handlers stay on client).

---

- Previous: [ModelPrice record](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/modelprice.md)
- Next: [UIActionInfo class](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/uiactioninfo.md)
