网淘吧来吧,欢迎您!

X Search技能使用说明

2026-03-28 新闻来源:网淘吧 围观:25
电脑广告
手机广告

X搜索

使用xAI Grok API搜索X(Twitter)帖子,实时访问X内容。

设置

  1. 获取您的API密钥:https://console.x.ai
  2. 设置环境变量:
    export XAI_API_KEY="xai-your-key-here"
    
  3. 或者设置skills."x-search".apiKey/skills."x-search".env.XAI_API_KEY~/.openclaw/openclaw.json

使用

python3 {baseDir}/scripts/search.py "what is trending in AI right now"

有用标志:

# 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"

注意事项

  • 使用xAI Responses API的x_search工具(Grok执行搜索并总结结果)
  • 不能同时使用--handles--exclude结果包含引用,附有原始X帖子的链接
  • Results include citations with links to original X posts
  • 以可读格式呈现结果,包含帖子内容、作者和引用信息
免责申明
部分文章来自各大搜索引擎,如有侵权,请与我联系删除。
打赏
文章底部电脑广告
手机广告位-内容正文底部

相关文章

您是本站第331269名访客 今日有574篇新文章/评论