<!--
{
  "availability" : [
    "iOS: 27.3.0 -",
    "iPadOS: 27.3.0 -",
    "macCatalyst: -",
    "macOS: 27.3.0 -",
    "visionOS: 27.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/AppIntentTraits",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "App Intents"
    ],
    "preciseIdentifier" : "s:10AppIntents0A12IntentTraitsV"
  },
  "title" : "AppIntentTraits"
}
-->

# AppIntentTraits

The roles an app intent takes on, passed to `@AppIntent`.

```
struct AppIntentTraits
```

## Overview

Pass a single trait, such as `.tool`, or a list, such as `[.tool]`. The
macro reads the traits as written, so they have to be listed directly rather
than computed.

A set holds each trait at most once. Traits that take a value are compared
by trait alone, so two values of the same trait are the same member.

## Topics

### Type Properties

[`static let tool: AppIntentTraits`](/documentation/AppIntents/AppIntentTraits/tool)

Siri can call the intent as a tool.

## Relationships

### Conforms To

[`SetAlgebra`](/documentation/Swift/SetAlgebra)

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`ExpressibleByArrayLiteral`](/documentation/Swift/ExpressibleByArrayLiteral)

[`Sendable`](/documentation/Swift/Sendable)

---

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)