xai-agent-tools
Installation
SKILL.md
xAI Agent Tools API
Server-side agentic tool calling that enables Grok to autonomously search, analyze, and execute code.
Overview
The Agent Tools API manages the entire reasoning and tool-execution loop on the server side, unlike traditional tool-calling where clients must handle each invocation.
Available Tools:
x_search- Search Twitter/X postsweb_search- Real-time web searchcode_execution- Python sandboxdocument_search- Search uploaded documents
Quick Start
import os
from openai import OpenAI