# MentorPageAttribute class

> The MentorPageAttribute class of Novior.MentorAgent.Attributes: Decorates a Blazor page or component to make it navigable by the Mentor AI. MentorAgent scans…

- URL: https://docs.mentoragent.net/api/novior-mentoragent-attributes/mentorpageattribute
- Verified with: MentorAgent 1.2.0
- Last updated: 2026-10-27
- Packages: Novior.MentorAgent

Decorates a Blazor page or component to make it navigable by the Mentor AI. MentorAgent scans assemblies for this attribute during discovery — the page is registered without needing to be visited first.

```text title="Example"
// Simple page — navigation only
@attribute [MentorPage("/orders", "Orders")]

// Page with UI actions — waits for SignalReady after navigation
@attribute [MentorPage("/orders-interactive", "Interactive Orders",
    HasUIActions  = true,
    ReadyTimeout  = 3000,
    Description   = "Order management with forms, filters and row highlighting")]
```

## Definition

Namespace: `Novior.MentorAgent.Attributes`. Package: `Novior.MentorAgent`.

`public sealed class MentorPageAttribute : Attribute`

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

## Constructors

`public MentorPageAttribute()`

## Properties

### `Description`

`public string? Description { get; init; }`

Optional description of the page's features.

### `HasUIActions`

`public bool HasUIActions { get; init; }`

If true, the Mentor waits for the page to call `PageContext.SignalReady()` before executing UI actions. Default: false

### `Name`

`public required string Name { get; init; }`

Human-readable page name. Used in the system prompt.

### `ReadyTimeout`

`public int ReadyTimeout { get; init; }`

Timeout in milliseconds for WaitForPageReadyAsync. Used only when HasUIActions = true. Default: 2000ms

### `Url`

`public required string Url { get; init; }`

The page URL. E.g.: "/orders-interactive"

---

- Previous: [MentorAgentAttribute class](https://docs.mentoragent.net/api/novior-mentoragent-attributes/mentoragentattribute.md)
- Next: [MentorSkillAttribute class](https://docs.mentoragent.net/api/novior-mentoragent-attributes/mentorskillattribute.md)
