𝕏
简介
通过xAI Grok API实时搜索X/Twitter帖子,支持按用户、日期、媒体类型过滤,适合追踪热点话题与舆情监测。
原始描述
Search X (Twitter) posts using the xAI API. Use when the user wants to find tweets, search X/Twitter, look up what people are saying on X, or find social med...
通过你的 Agent 添加
安装目录:x-search/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
Claude Code~/.claude/skills/x-search-10304/
Codex CLI~/.codex/skills/x-search-10304/
DeepSeek Harness~/.agents/skills/x-search-10304/
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: x-search
description: Search X (Twitter) posts using the xAI API. Use when the user wants to find tweets, search X/Twitter, look up what people are saying on X, or find social media posts about a topic.
homepage: https://docs.x.ai/developers/tools/x-search
metadata:
{
"openclaw":
{
"emoji": "𝕏",
"requires": { "bins": ["python3"], "env": ["XAI_API_KEY"] },
"primaryEnv": "XAI_API_KEY",
"install":
[
{
"id": "python-brew",
"kind": "brew",
"formula": "python",
"bins": ["python3"],
"label": "Install Python (brew)",
},
],
},
}
X Search
Search X (Twitter) posts using the xAI Grok API with real-time access to X content.
Setup
- Get your API key: https://console.x.ai
- Set environment variable:
export XAI_API_KEY="xai-your-key-here"
- Or set
skills."x-search".apiKey / skills."x-search".env.XAI_API_KEY in ~/.openclaw/openclaw.json
Usage
python3 {baseDir}/scripts/search.py "what is trending in AI right now"
export XAI_API_KEY="xai-your-key-here"
skills."x-search".apiKey / skills."x-search".env.XAI_API_KEY in ~/.openclaw/openclaw.jsonpython3 {baseDir}/scripts/search.py "what is trending in AI right now"
Useful flags:
# Filter by handles (max 10)
python3 {baseDir}/scripts/search.py --handles jaaneek,OpenClaw "latest posts"
# Exclude handles (max 10)
python3 {baseDir}/scripts/search.py --exclude spambot,crypto_shill "trending AI"
# Date range (YYYY-MM-DD)
python3 {baseDir}/scripts/search.py --from 2026-03-01 --to 2026-03-20 "xAI grok updates"
# Enable image/video understanding in posts
python3 {baseDir}/scripts/search.py --images --video "product demos"
Notes
- Uses the xAI Responses API with
x_search tool (Grok performs the search and summarizes results)
- Cannot use
--handles and --exclude at the same time
- Results include citations with links to original X posts
- Present results in a readable format with post content, authors, and citations
x_search tool (Grok performs the search and summarizes results)--handles and --exclude at the same time正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。