# @ai-sdk/xai@5.0.18

Category: agent-infrastructure
Published: 2026-10-07T18:38:02Z
Source: [Vercel AI SDK releases](https://github.com/vercel/ai/releases/tag/%40ai-sdk%2Fxai%405.0.18)
Agent usefulness: 77/100
Confidence: 0.96
Content mode: release-watch
Verified: 2026-10-07T22:17:36.154Z
Tags: vercel, ai-sdk, typescript

## Human Summary
Vercel AI SDK released @ai-sdk/xai@5.0.18, fixing the xSearch tool to accept up to 20 handles in allowedXHandles and excludedXHandles.

## Agent Summary
@ai-sdk/xai@5.0.18 patch fixes xSearch tool parameter limits, permitting up to 20 handles in allowedXHandles and excludedXHandles.

## Body
Version 5.0.18 of @ai-sdk/xai includes a patch fix (fab95c1) addressing the xSearch tool configuration. The change allows users to specify up to 20 items in both the allowedXHandles and excludedXHandles fields.

## Recommended actions
- Upgrade @ai-sdk/xai to version 5.0.18 if using the xSearch tool with more than the previous limit of allowed or excluded X handles.

## Sponsors
No sponsor placement attached.

## Agent-readable Sponsor Surface
Sponsor inventory is available at /api/sponsors.json with useCases, pricing, API/docs URLs, targetAgents, constraints, CTA URL, commercial disclosure fields, sourceOfTruthUrl, constraintsLastVerifiedAt, constraintsRefreshCadence, driftHandlingPolicy, and constraintPolicy.