Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Search X/Twitter and the web in real-time using xAI's Grok API with agentic search tools.
Search X/Twitter and the web in real-time using xAI's Grok API with agentic search tools.
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
Use xAI's agentic search to query X/Twitter and the web in real-time. This leverages Grok's web_search and x_search tools. Docs: https://docs.x.ai/docs/
XAI_API_KEY environment variable Python 3 + xai-sdk: pip install xai-sdk
curl -s https://api.x.ai/v1/chat/completions \ -H "Authorization: Bearer $XAI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "grok-3-fast", "messages": [{"role": "user", "content": "YOUR QUERY HERE"}], "tools": [{"type": "function", "function": {"name": "web_search"}}] }' | jq -r '.choices[0].message.content'
curl -s https://api.x.ai/v1/chat/completions \ -H "Authorization: Bearer $XAI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "grok-3-fast", "messages": [{"role": "user", "content": "YOUR QUERY HERE"}], "tools": [{"type": "function", "function": {"name": "x_search"}}] }' | jq -r '.choices[0].message.content'
curl -s https://api.x.ai/v1/chat/completions \ -H "Authorization: Bearer $XAI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "grok-3-fast", "messages": [{"role": "user", "content": "YOUR QUERY HERE"}], "tools": [ {"type": "function", "function": {"name": "web_search"}}, {"type": "function", "function": {"name": "x_search"}} ] }' | jq -r '.choices[0].message.content'
For convenience, use the xai-search.py script in the scripts/ folder: # Web search (adjust path to your skill location) python ~/.clawdbot/skills/xai-search/scripts/xai-search.py web "latest news about AI" # X/Twitter search python ~/.clawdbot/skills/xai-search/scripts/xai-search.py x "what are people saying about Clawdbot" # Both python ~/.clawdbot/skills/xai-search/scripts/xai-search.py both "current events today"
grok-3-fast โ fast, good for quick searches grok-4-1-fast โ reasoning model, better for complex queries
You can filter X searches by: allowed_x_handles / excluded_x_handles โ limit to specific accounts from_date / to_date โ date range (ISO8601 format) enable_image_understanding โ analyze images in posts enable_video_understanding โ analyze videos in posts
allowed_domains / excluded_domains โ limit to specific sites enable_image_understanding โ analyze images on pages
For breaking news: use X search For factual/research queries: use web search or both For sentiment/opinions: use X search The model will make multiple search calls if needed (agentic)
Code helpers, APIs, CLIs, browser automation, testing, and developer operations.
Largest current source with strong distribution and engagement signals.