Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Search the web or X/Twitter using xAI Grok server-side tools (web_search, x_search) via the xAI Responses API. Use when you need tweets/threads/users from X, want Grok as an alternative to Brave, or you need structured JSON + citations.
Search the web or X/Twitter using xAI Grok server-side tools (web_search, x_search) via the xAI Responses API. Use when you need tweets/threads/users from X, want Grok as an alternative to Brave, or you need structured JSON + citations.
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.
The script looks for an xAI API key in this order: XAI_API_KEY env var ~/.clawdbot/clawdbot.json β env.XAI_API_KEY ~/.clawdbot/clawdbot.json β skills.entries["grok-search"].apiKey fallback: skills.entries["search-x"].apiKey or skills.entries.xai.apiKey
Use {baseDir} so the command works regardless of workspace layout.
Web search (JSON): node {baseDir}/scripts/grok_search.mjs "<query>" --web X/Twitter search (JSON): node {baseDir}/scripts/grok_search.mjs "<query>" --x
Chat (text): node {baseDir}/scripts/chat.mjs "<prompt>" Chat (vision): node {baseDir}/scripts/chat.mjs --image /path/to/image.jpg "<prompt>"
List models: node {baseDir}/scripts/models.mjs
Output: --links-only print just citation URLs --text hide the citations section in pretty output --raw include the raw Responses API payload on stderr (debug) Common: --max <n> limit results (default 8) --model <id> (default grok-4-1-fast) X-only filters (server-side via x_search tool params): --days <n> (e.g. 7) --from YYYY-MM-DD / --to YYYY-MM-DD --handles @a,@b (limit to these handles) --exclude @bots,@spam (exclude handles)
{ "query": "...", "mode": "web" | "x", "results": [ { "title": "...", "url": "...", "snippet": "...", "author": "...", "posted_at": "..." } ], "citations": ["https://..."] }
citations are merged/validated from xAI response annotations where possible (more reliable than trusting the modelβs JSON blindly). Prefer --x for tweets/threads, --web for general research.
Code helpers, APIs, CLIs, browser automation, testing, and developer operations.
Largest current source with strong distribution and engagement signals.