AgentTool
A function an agent loop can call: the on-device loops (OpenAI, Anthropic, Gemini, Ollama), and server agents that accept client-side tools (AG-UI frontend tools, AI SDK client tools). parameters is a JSON Schema object, shared verbatim by every API.
name must match ^[a-zA-Z0-9_-]{1,64}$ (the strictest provider rule). Long-running tools can report progress through ToolCallContext.current.