---
title: stageToken
framework: corespotlight
role: symbol
role_heading: Instance Property
path: corespotlight/spotlightsearchtool/searchreply/stagetoken-swift.property
---

# stageToken

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

## Declaration

```swift
let stageToken: SpotlightSearchTool.SearchReply.StageToken
```

## Mentioned in

Making your indexed content available to Foundation Models

## Discussion

Discussion The Spotlight search tool provides several ways to search content, and implements each technique as an independent stage. For a given query, a model can run multiple stages to generate the results of the query. Use this property to associate search reply structures with a specific stage. 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.

## See Also

### Getting the tokens

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