SpotlightSearchTool.FormatLevel
Controls how tool responses are serialized for the model’s context window.
Declaration
enum FormatLevelOverview
The tool returns search results to the model as part of the generation context. The format level determines how those results are encoded:
.structured: Full encoding with the highest fidelity, highest token cost. Best when the model needs to reason over attribute keys and values precisely (e.g., filtering, re-querying)..compact: Terse, line-oriented text encoding. Best for models with limited context.