Function definition containing name, description, and parameter schema
Human-readable description shown to the model
Tool name — used as the function identifier in tool calls
JSON Schema describing the tool's arguments
Always "function" for function-calling tools
OpenAI-compatible function tool schema
The wrapper format expected by
formatChat()when passing tools to the model. Tool.schema generates this automatically from the tool'sname,description, andparameters.