---
title: SpotlightSearchTool.SearchReply.QueryToken
framework: corespotlight
role: symbol
role_heading: Structure
path: corespotlight/spotlightsearchtool/searchreply/querytoken-swift.struct
---

# SpotlightSearchTool.SearchReply.QueryToken

An opaque type you use to identify a single call to the Spotlight search tool.

## Declaration

```swift
struct QueryToken
```

## Overview

Overview When processing a request, a model might call the Spotlight search tool multiple times to retrieve results. Each time the model calls the Spotlight search tool’s call(arguments:) method, the tool generates a new QueryToken to track that request. When delivering results to your app, the tool includes this token in the SpotlightSearchTool.SearchReply structures it delivers. Use the token to associate that data with a specific query.

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Getting the tokens

- [queryToken](corespotlight/spotlightsearchtool/searchreply/querytoken-swift.property.md)
- [stageToken](corespotlight/spotlightsearchtool/searchreply/stagetoken-swift.property.md)
- [SpotlightSearchTool.SearchReply.StageToken](corespotlight/spotlightsearchtool/searchreply/stagetoken-swift.struct.md)
