File: ai-tool-call-repair-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 there is a failure while attempting to repair an invalid tool call. This typically happens when the AI attempts to fix either a NoSuchToolError or InvalidToolInputError.
originalError: The original error that triggered the repair attempt (either NoSuchToolError or InvalidToolInputError)message: The error messagecause: The underlying error that caused the repair to failYou can check if an error is an instance of ToolCallRepairError using:
import { ToolCallRepairError } from 'ai';
if (ToolCallRepairError.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: