---
title: format
framework: corespotlight
role: symbol
role_heading: Instance Property
path: corespotlight/spotlightsearchtool/guide/format
---

# format

The representation format for tool responses returned to the model.

## Declaration

```swift
let format: SpotlightSearchTool.FormatLevel
```

## Mentioned in

Making your indexed content available to Foundation Models

## Discussion

Discussion Controls how search results are serialized in the model’s context window. Use SpotlightSearchTool.FormatLevel.compact to reduce token consumption when working with small-context models or long conversations.

## See Also

### Getting the guidance

- [level](corespotlight/spotlightsearchtool/guide/level.md)
