---
title: page
framework: appintents
role: symbol
role_heading: Instance Property
path: appintents/assistantschemas/wordprocessorentity/page
---

# page

The app entity describes a page in a text document.

## Declaration

```swift
var page: some AssistantSchemas.Entity { get }
```

## Overview

Overview Use Swift macros that generate additional properties and add protocol conformance for your app entity implementation. The following example shows an app entity that conforms to the .wordProcessor.page schema: @AppEntity(schema: .wordProcessor.page) struct WordProcessorPageEntity: AppEntity {     struct Query: EntityStringQuery {         func entities(for identifiers: [WordProcessorPageEntity.ID]) async throws -> [WordProcessorPageEntity] { [] }         func entities(matching string: String) async throws -> [WordProcessorPageEntity] { [] }     }

static var defaultQuery = Query()     var displayRepresentation: DisplayRepresentation { "Text Document Page" }

let id = UUID()

@Property     var document: WordProcessorDocumentEntity

@Property     var pageIndex: Int }
