<!--
{
  "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/WhiteboardIntent/createItem",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "App Intents",
      "AppIntents"
    ],
    "preciseIdentifier" : "s:10AppIntents16AssistantSchemasO16WhiteboardIntentPAAE10createItemQrvp"
  },
  "title" : "createItem"
}
-->

# createItem

The app intent conforms to the schema for creating an item on a whiteboard canvas.

```
var createItem: 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 `.whiteboard.createItem` schema:

```swift
@AppIntent(schema: .whiteboard.createItem)
struct CreateCanvasItemIntent: AppIntent {
    @Parameter
    var target: CanvasEntity

    @Parameter
    var itemType: CanvasItemType?

    @Parameter
    var text: String?

    @Parameter
    var mediaItems: [IntentFile]

    @Parameter
    var url: URL?

    func perform() async throws -> some ReturnsValue<CanvasItemEntity> {
        .result(value: CanvasItemEntity())
    }
}
```

For more information about the `.whiteboard` app intent domain,
see [Whiteboard](/documentation/AppIntents/app-schema-domain-whiteboard).
For general information about app intent domains, see [Making actions and content discoverable by Apple Intelligence](/documentation/AppIntents/making-actions-and-content-discoverable-by-apple-intelligence).

---

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)