---
title: "AppIntent(_:schema:)"
framework: appintents
role: symbol
role_heading: Macro
platforms: [iOS 27.3+, iPadOS 27.3+, Mac Catalyst 27.3+, macOS 27.3+, visionOS 27.3+]
path: "appintents/appintent(_:schema:)"
---

# AppIntent(_:schema:)

Makes an app intent that conforms to a schema available to Siri as a tool.

## Declaration

```swift
@attached(memberAttribute) @attached(extension, conformances: ToolIntent, AppIntent, AssistantSchemaIntent, ShowInAppSearchResultsIntent, OpenIntent, DeleteIntent, AudioPlaybackIntent, AudioRecordingIntent, LiveActivityIntent, URLRepresentableIntent, names: named(__appSchemaIntent)) macro AppIntent<T>(_ traits: AppIntentTraits, schema: T) where T : AppSchemaIntent
```

## Parameters

- `traits`: The intent’s roles, such as .tool or [.tool].
- `schema`: The schema the intent conforms to.

## Overview

Overview Use this macro in place of @AppIntent(schema:). It adds everything @AppIntent(schema:) adds, plus a ToolIntent conformance: @AppIntent(.tool, schema: .journal.createEntry) struct CreateEntryIntent {     var title: String?     var message: AttributedString     // ... } Only schemas available exclusively in Shortcuts are supported. Schemas in primary domains, such as .messages.sendMessage, are already handled by Siri, and using one here is an error.

## See Also

### Tool support

- [AppIntent(_:)](appintents/appintent(_:).md)
- [AppIntentTraits](appintents/appintenttraits.md)
- [IntentVisibility](appintents/intentvisibility.md)
- [ToolIntent](appintents/toolintent.md)
