# MentorPageActionLimits class

> The MentorPageActionLimits class of Novior.MentorAgent.Abstractions.Models: The limits of the trace of the pages' actions, the registrations of origin…

- URL: https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentorpageactionlimits
- Verified with: MentorAgent 1.4.0
- Last updated: 2026-11-18
- Packages: Novior.MentorAgent.Abstractions

The limits of the trace of the pages' actions, the registrations of origin [`MentorActionOrigins.Page`](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentoractionorigins#page) in [`IMentorActionCatalog.GetRegistrations`](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-interfaces/imentoractioncatalog#getregistrations). A page declares its UI actions from the browser, so what it declares is not trusted: the trace keeps only names, and only within these limits. What goes beyond them is in the page's [`MentorActionRegistration.Rejected`](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentoractionregistration#rejected), by its rule in ACTION-RULES.md. The limits apply to the trace only: the actions a page offers the model are not cut by them.

## Definition

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

`public static class MentorPageActionLimits`

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

## Fields

### `MaxActionNameLength`

`public const int MaxActionNameLength = 64`

The longest action name the trace lists, as a model's tool name (`page.name-shape`): letters A-Z and a-z, digits, `_` and `-`, from 1 to 64 of them. A name rejected is written in [`MentorActionRejection.Name`](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentoractionrejection#name) cut to this length.

### `MaxActionsPerPage`

`public const int MaxActionsPerPage = 64`

The most actions one page lists (`page.limit`). A page's 65th action and those after it are in its [`MentorActionRegistration.Rejected`](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentoractionregistration#rejected).

### `MaxPageNameLength`

`public const int MaxPageNameLength = 128`

The longest page name the trace lists (`page.name-shape`). A page name has from 1 to 128 characters, spaces included, is not made of white space only, and has no control or format character (Unicode category C, so no line break or tab either). A page without a name, or with another one, is not in the trace.

### `MaxPages`

`public const int MaxPages = 200`

The most pages the trace lists (`page.limit`). A page that comes after the 200th is not in the trace, and a warning in the log says so once.

### `MaxRejectedPerPage`

`public const int MaxRejectedPerPage = 64`

The most things one page lists in its [`MentorActionRegistration.Rejected`](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentoractionregistration#rejected); past it, what a page declares beyond the limits is not written down.

---

- Previous: [MentorModelUsage record](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentormodelusage.md)
- Next: [MentorRagResult record](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentorragresult.md)
