← All skills
Tencent SkillHub Β· Developer Tools

grok-search

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.

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

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.

⬇ 0 downloads β˜… 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
SKILL.md, references/xai-tools-links.md, scripts/chat.mjs, scripts/grok_search.mjs, scripts/models.mjs, scripts/selftest.mjs

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

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.

Upgrade existing

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.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
0.2.1

Documentation

ClawHub primary doc Primary doc: SKILL.md 8 sections Open source page

API key

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

Run

Use {baseDir} so the command works regardless of workspace layout.

Search

Web search (JSON): node {baseDir}/scripts/grok_search.mjs "<query>" --web X/Twitter search (JSON): node {baseDir}/scripts/grok_search.mjs "<query>" --x

Chat

Chat (text): node {baseDir}/scripts/chat.mjs "<prompt>" Chat (vision): node {baseDir}/scripts/chat.mjs --image /path/to/image.jpg "<prompt>"

Models

List models: node {baseDir}/scripts/models.mjs

Useful flags

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)

Output shape (JSON)

{ "query": "...", "mode": "web" | "x", "results": [ { "title": "...", "url": "...", "snippet": "...", "author": "...", "posted_at": "..." } ], "citations": ["https://..."] }

Notes

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.

Category context

Code helpers, APIs, CLIs, browser automation, testing, and developer operations.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
4 Scripts2 Docs
  • SKILL.md Primary doc
  • references/xai-tools-links.md Docs
  • scripts/chat.mjs Scripts
  • scripts/grok_search.mjs Scripts
  • scripts/models.mjs Scripts
  • scripts/selftest.mjs Scripts