<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreSpotlight",
  "identifier" : "/documentation/CoreSpotlight/SpotlightSearchTool/SearchReply/queryToken-swift.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Spotlight",
      "FoundationModels"
    ],
    "preciseIdentifier" : "s:31_CoreSpotlight_FoundationModels0B10SearchToolV0E5ReplyV10queryTokenAE05QueryI0Vvp"
  },
  "title" : "queryToken"
}
-->

# queryToken

An opaque value you use to identify the query that generated the reply.

```
let queryToken: SpotlightSearchTool.SearchReply.QueryToken
```

## Discussion

When processing a request, a model might create multiple queries to find and refine search
results. Use this property to associate replies with a specific query. The token itself is
an opaque value you save and compare against tokens in other search replies. You might use
this value to partition the data you receive.

---

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)