---
title: "AppIntent(_:)"
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(_:)"
---

# AppIntent(_:)

Makes an existing app intent available to Siri as a tool.

## Declaration

```swift
@attached(extension, conformances: ToolIntent) macro AppIntent(_ traits: AppIntentTraits)
```

## Parameters

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

## Overview

Overview Apply this macro to a structure or class that conforms to AppIntent. It adds a ToolIntent conformance, using the availability declared on the type, or the availability of ToolIntent when the type declares none. @AppIntent(.tool) struct SearchFlights { ... }

## See Also

### Tool support

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