<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/EntityStringQuery",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "App Intents"
    ],
    "preciseIdentifier" : "s:10AppIntents17EntityStringQueryP"
  },
  "title" : "EntityStringQuery"
}
-->

# EntityStringQuery

An interface that locates entities using arbitrary string input.

```
protocol EntityStringQuery : EntityQuery
```

## Overview

EntityStringQuery adds to a [`EntityQuery`](/documentation/AppIntents/EntityQuery) the ability to query instances by `String`.
The `String` value against which entities are matched typically represents the name a user would
use to refer to a particular instance.

## Topics

### Searching for entities

[`entities(matching:)`](/documentation/AppIntents/EntityStringQuery/entities(matching:))

Retrieves instances by string.

## Relationships

### Inherits From

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

[`EntityQuery`](/documentation/AppIntents/EntityQuery)

[`DynamicOptionsProvider`](/documentation/AppIntents/DynamicOptionsProvider)

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

[`PersistentlyIdentifiable`](/documentation/AppIntents/PersistentlyIdentifiable)

---

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)