
TOPIC
Functions, code execution and MCP tools
- APIAdd the xAI Docs MCP serveradd-xai-docs-mcp-server
- APICall a function with the Grok APIcall-a-function-with-grok-api
- APICall custom functions on the Grok APIcall-custom-functions-on-grok-api
- APICite tool sources in API responsescite-tool-sources-in-api-responses
- APICombine structured outputs with tools on the Grok APIcombine-structured-outputs-with-tools
- APIConnect a remote MCP server in the Grok APIconnect-remote-mcp-in-grok-api
- APIContinue agentic tool chats across turnscontinue-agentic-tools-across-turns
- APIContinue an agentic conversation with store_messagescontinue-agentic-conversation-with-store-messages
- APIDisable parallel tool callsdisable-parallel-tool-calls
- APIExecute code with the Grok APIexecute-code-with-grok-api
- APIForce a specific tool with tool_choiceforce-a-specific-tool-with-tool-choice
- APIInclude an image in an agentic tool requestinclude-an-image-in-an-agentic-tool-request
- APIInclude images in agentic tool conversationsinclude-images-in-agentic-tool-calls
- APILimit agentic tool turns with max_turnslimit-agentic-turns-with-max-turns
- APIMix client-side and server-side tools on Grokmix-client-and-server-side-tools
- APIRead server-side tool usage on Grok API responsesread-server-side-tool-usage
- APIRun code execution on the Grok APIrun-code-execution-on-grok-api
- APIRun multi-agent research on grok-4.20-multi-agentrun-multi-agent-research
- APISet max_turns on agentic Responsesset-max-turns-on-agentic-responses
- APIStream agentic tool calls on the Grok APIstream-agentic-tool-calls
- APIUse encrypted content for agentic multi-turnuse-encrypted-content-for-agentic-multi-turn