X Search技能使用说明

subsun 4周前 (03-28) openclaw小龙虾 69 0

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
  • 以可读格式呈现结果,包含帖子内容、作者和引用信息
免责申明
部分文章来自各大搜索引擎,如有侵权,请与我联系删除。
打赏

相关推荐

网友评论

  • (*)

最新评论

用户管理

您好,欢迎到访网站!
    用户注册

上网淘巴领天猫淘宝优惠券,一年省好几千。

广告  ×

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