File: ai-invalid-tool-input-error.md | Updated: 11/15/2025
Menu
v5 (Latest)
AI SDK 5.x
Model Context Protocol (MCP) Tools
AI_TooManyEmbeddingValuesForCallError
AI_UnsupportedFunctionalityError
Copy markdown
==================================================================================================================================
This error occurs when invalid tool input was provided.
toolName: The name of the tool with invalid inputstoolInput: The invalid tool inputsmessage: The error messagecause: The cause of the errorYou can check if an error is an instance of AI_InvalidToolInputError using:
import { InvalidToolInputError } from 'ai';
if (InvalidToolInputError.isInstance(error)) { // Handle the error}
On this page
Deploy and Scale AI Apps with Vercel.
Vercel delivers the infrastructure and developer experience you need to ship reliable AI-powered applications at scale.
Trusted by industry leaders: