<!--
{
  "availability" : [
    "*: -",
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/AssistantSchemas/WordProcessorIntent/addVideoToPage",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "App Intents",
      "AppIntents"
    ],
    "preciseIdentifier" : "s:10AppIntents16AssistantSchemasO19WordProcessorIntentPAAE14addVideoToPageQrvp"
  },
  "title" : "addVideoToPage"
}
-->

# addVideoToPage

The app intent conforms to the schema for adding a video to a page in a text document.

```
var addVideoToPage: some AssistantSchemas.Intent { get }
```

## Overview

Use Swift macros that generate additional properties and add protocol conformance
for your app intent implementation. The following example shows an app intent that
conforms to the `.wordProcessor.addVideoToPage` schema:

```swift
@AppIntent(schema: .wordProcessor.addVideoToPage)
struct AddVideoToWordProcessorPageIntent: AppIntent {
    @Parameter
    var target: WordProcessorPageEntity

    @Parameter(supportedContentTypes: [.movie])
    var video: IntentFile

    func perform() async throws -> some IntentResult {
        .result()
    }
}
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)