<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreSpotlight",
  "identifier" : "/documentation/CoreSpotlight/SpotlightSearchTool/Configuration-swift.struct/maximumResponseSize",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Spotlight",
      "FoundationModels"
    ],
    "preciseIdentifier" : "s:31_CoreSpotlight_FoundationModels0B10SearchToolV13ConfigurationV19maximumResponseSizeSiSgvp"
  },
  "title" : "maximumResponseSize"
}
-->

# maximumResponseSize

The maximum number of UTF-8 characters of rendered tool output the
search tool sends back to the model on a single call.

```
var maximumResponseSize: Int?
```

## Discussion

If `nil`, the tool picks a default based on the configured [`guide`](/documentation/CoreSpotlight/SpotlightSearchTool/Configuration-swift.struct/guide).
Pass an explicit value to override that default; the override applies
regardless of the guide’s level.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)