AI SDK Google Vertex 4.0.234 caps tool result downloads at 7 MiB
Vertex tool result downloads now default to a 7 MiB limit, down from 2 GiB. Raise maxBytes in createVertex for larger files.
What changed
@ai-sdk/google-vertex 4.0.234, released November 17, 2026 with @ai-sdk/google 3.0.147, limits Google Vertex tool result file downloads with toolResultDownloads.maxBytes. The default is now 7 MiB per file. It was 2 GiB.
The same release stops using the provider fetch option for these downloads. They use a built-in validated transport unless you set toolResultDownloads.fetch.
Prerequisites
- An app on
@ai-sdk/google-vertex4.x that returns remote files from tools to Vertex - Your Google Cloud credentials for Vertex, set up as your app already does
Steps
- Check the largest file your tools return.
- If it can exceed 7 MiB, set a higher limit where you create the provider:
import { createVertex } from '@ai-sdk/google-vertex';
const vertex = createVertex({
toolResultDownloads: { maxBytes: 20 * 1024 * 1024 },
});- Keep the limit as low as your files allow.
- If you relied on a custom
fetchfor these downloads, such as a proxy, pass it as . It must validate DNS results at connect time.
Affected by this? Start from a checked Vercel AI SDK integration
Code with pinned versions, checked against the official docs on a schedule.
