Tool Definition
ToolDefinition Type
ParameterSchema
Full JSON Schema support including:- Object, array, string, number, integer, boolean types
- Nested objects and arrays
- Enum constraints
- Numeric min/max
- String pattern, minLength, maxLength
- Array minItems, maxItems
Tool Calls in Responses
Tool calls appear asEventBlock entries with type tool_call:
Tool Results
Send tool results back as messages with roletool:
Server-Side Tools
Some providers support server-side tools (web search, code execution). These are configured in the provider’sallowed_server_tools whitelist: