xAI Grok Function Calling

Grok's function/tool calling API lets developers define custom tools with JSON Schema that Grok invokes during conversations. Supports parallel tool calls, tool choice control, and can be combined with built-in tools like web search and X search. Accessible via the xAI SDK, OpenAI-compatible SDK, and Vercel AI SDK.

Creator: xAI | Category: tool-use | Status: stable

Key Capabilities

  • JSON schema tools
  • parallel tool calling
  • tool choice control
  • web search tool
  • X search tool
  • OpenAI SDK compatible