返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
g

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.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.2.1
安全检测
已通过
4,830
下载量
7
收藏
概述
安装方式
版本历史

grok-search

Run xAI Grok locally via bundled scripts (search + chat + model listing). Default output for search is *pretty JSON* (agent-friendly) with citations. ## 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) ```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.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 grok-search-1776383534 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 grok-search-1776383534 技能

通过命令行安装

skillhub install grok-search-1776383534

下载 Zip 包

⬇ 下载 grok-search v0.2.1

文件大小: 11.27 KB | 发布时间: 2026-4-17 14:01

v0.2.1 最新 2026-4-17 14:01
Fix: better citations (dedupe by tweet id, prioritize result URLs, cap size) + keep JSON stable.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部