Vercel AI SDK 7 Locks Tools to Only Their Declared Secrets
The SDK now requires each tool to provide a Zod-based context schema, and at runtime Vercel validates that only the declared fields are passed, aborting execution on any extra or missing keys.