---
title: Spotlight search tool
framework: corespotlight
role: collectionGroup
role_heading: API Collection
path: corespotlight/spotlight-search-tool
---

# Spotlight search tool

Make your app’s indexed content available to the system’s Foundation models as additional context to use when answering prompts.

## Overview

Overview Your app’s Spotlight search index provides fast access to your app’s content when you need to find something. The SpotlightSearchTool provides an efficient way for the Foundation Models framework to access the content in that index and use it to answer prompts. Include this tool in the Foundation Models session you use to run prompts that require your app’s custom content. Configure the search tool as needed to customize its behavior or the search behaviors.

## Topics

### Essentials

- [Making your indexed content available to Foundation Models](corespotlight/making-your-indexed-content-available-to-foundation-models.md)

### Tool configuration

- [SpotlightSearchTool](corespotlight/spotlightsearchtool.md)
- [SpotlightSearchTool.Configuration](corespotlight/spotlightsearchtool/configuration-swift.struct.md)

### Data sources

- [SearchSource](corespotlight/searchsource.md)
- [CoreSpotlightSource](corespotlight/corespotlightsource.md)
- [FileSource](corespotlight/filesource.md)
- [SearchableItemAttribute](corespotlight/searchableitemattribute.md)

### Tool customization

- [CustomStage](corespotlight/customstage.md)
- [SearchPipelineData](corespotlight/searchpipelinedata.md)
- [SearchPipelineDataType](corespotlight/searchpipelinedatatype.md)
- [ScoredSearchableItem](corespotlight/scoredsearchableitem.md)

### Contact resolution

- [ContactResolver](corespotlight/contactresolver.md)
- [ResolvedContact](corespotlight/resolvedcontact.md)

### Search results

- [SearchCount](corespotlight/searchcount.md)
- [SearchResultsTable](corespotlight/searchresultstable.md)
- [SearchStatistic](corespotlight/searchstatistic.md)
- [SearchTextResult](corespotlight/searchtextresult.md)
