API / JOIN

TOPIC

Functions, code execution and MCP tools

  1. APIAdd the xAI Docs MCP serveradd-xai-docs-mcp-server
  2. APICall a function with the Grok APIcall-a-function-with-grok-api
  3. APICall custom functions on the Grok APIcall-custom-functions-on-grok-api
  4. APICite tool sources in API responsescite-tool-sources-in-api-responses
  5. APICombine structured outputs with tools on the Grok APIcombine-structured-outputs-with-tools
  6. APIConnect a remote MCP server in the Grok APIconnect-remote-mcp-in-grok-api
  7. APIContinue agentic tool chats across turnscontinue-agentic-tools-across-turns
  8. APIContinue an agentic conversation with store_messagescontinue-agentic-conversation-with-store-messages
  9. APIDisable parallel tool callsdisable-parallel-tool-calls
  10. APIExecute code with the Grok APIexecute-code-with-grok-api
  11. APIForce a specific tool with tool_choiceforce-a-specific-tool-with-tool-choice
  12. APIInclude an image in an agentic tool requestinclude-an-image-in-an-agentic-tool-request
  13. APIInclude images in agentic tool conversationsinclude-images-in-agentic-tool-calls
  14. APILimit agentic tool turns with max_turnslimit-agentic-turns-with-max-turns
  15. APIMix client-side and server-side tools on Grokmix-client-and-server-side-tools
  16. APIRead server-side tool usage on Grok API responsesread-server-side-tool-usage
  17. APIRun code execution on the Grok APIrun-code-execution-on-grok-api
  18. APIRun multi-agent research on grok-4.20-multi-agentrun-multi-agent-research
  19. APISet max_turns on agentic Responsesset-max-turns-on-agentic-responses
  20. APIStream agentic tool calls on the Grok APIstream-agentic-tool-calls
  21. APIUse encrypted content for agentic multi-turnuse-encrypted-content-for-agentic-multi-turn