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

# SpotlightSearchTool.SearchReply.StageToken

An opaque type you use to identify a single pipeline stage within the Spotlight search tool.

## Declaration

```swift
struct StageToken
```

## Overview

Overview Within a single call to the Spotlight search tool’s call(arguments:) method, the tool can run one or more pipeline stages to deliver the requested results. Each stage corresponds to a specific task needed to generate the results. For example, one stage might rank the search results based on their relevance. When delivering results to your app, the tool includes a StageToken value in the SpotlightSearchTool.SearchReply structure it delivers. You can use the token to associate that data with a particular processing stage of the tool.

## 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.QueryToken](corespotlight/spotlightsearchtool/searchreply/querytoken-swift.struct.md)
