返回顶部
e

exa-searchExa搜索

Neural web search, similar-page discovery, and URL content fetching via the Exa AI search engine. USE WHEN: user asks to search the web, find articles/repos/papers on a topic, look up recent news, find pages similar to a URL, or fetch page contents for a known URL. NOT FOR: fetching tweets (use fxtwitter), downloading videos (use yt-dlp), scraping JS-heavy or anti-bot sites (use scrapling), querying APIs directly, or searching local files/repos (use rg/find).

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.3
安全检测
已通过
492
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

exa-search

exa-search 技能

使用此技能通过 Exa AI 搜索引擎搜索网页、查找相似页面或获取页面内容——快速、神经化且具备证书感知能力。

该技能通过 Bash 调用原生 Rust 二进制文件 (bin/exa-search)。运行 install.sh 一次即可构建。



何时使用 / 何时不使用

使用场景:

  • - 搜索网页上的文章、文档、代码仓库、论文、工具、人物、公司
  • 查找最新新闻或公告(使用 livecrawl: fallback 或 always 获取最新内容)
  • 无需浏览器自动化即可获取已知 URL 的全文
  • 查找与参考 URL 相似的页面(竞品分析、替代工具)
  • 任何非特定推文或视频的网页查找

不适用于:

  • - 获取推文/X 帖子 → 使用 fxtwitter 技能(Exa 无法获取推文 URL)
  • 下载视频/音频 → 使用 yt-dlp
  • 抓取动态或 Cloudflare 保护的页面 → 使用 scrapling
  • 本地文件/代码搜索 → 使用 rg、find 或 grep
  • 查询结构化 API(GitHub、天气等)→ 使用专用技能
  • 当查询已经是已知内容的直接 URL 时 → 优先使用 get_contents 操作



前提条件

  • - 在 ~/.openclaw/workspace/.env 中设置 EXAAPIKEY(在 exa.ai 获取)
  • 安装 Rust(rustup)——仅用于一次性构建
  • 存在 bin/exa-search 二进制文件(运行 bash install.sh 构建)

操作

1. 搜索

bash
echo {query:你的查询内容,num_results:5} \
| EXAAPIKEY=$(grep -E ^EXAAPIKEY= ~/.openclaw/workspace/.env | cut -d= -f2 | tr -d ) \
~/.openclaw/workspace/skills/exa-search/bin/exa-search

完整参数:

json
{
query: rust 异步编程,
num_results: 5,
type: neural,
livecrawl: never,
include_domains: [github.com, docs.rs],
exclude_domains: [reddit.com],
startpublisheddate: 2025-01-01,
endpublisheddate: 2026-12-31,
category: 研究论文,
use_autoprompt: true,
text: { max_characters: 2000 },
highlights: { numsentences: 3, highlightsper_url: 2 },
summary: { query: 关键要点 }
}

type 选项: auto(默认)· neural · keyword

livecrawl 选项:

  • - never — 最快(约 300-600ms),纯缓存索引。最适合参考资料、文档、课程。
  • fallback — 使用缓存,未缓存时实时抓取。良好的默认选项。
  • preferred — 优先实时抓取。较慢但更新鲜。
  • always — 始终实时抓取。适用于突发新闻或快速变化的页面。



2. 查找相似

查找与给定 URL 相似的页面:

bash
echo {action:findsimilar,url:https://example.com,numresults:5} \
| EXAAPIKEY=$(grep -E ^EXAAPIKEY= ~/.openclaw/workspace/.env | cut -d= -f2 | tr -d ) \
~/.openclaw/workspace/skills/exa-search/bin/exa-search

参数: 与搜索相同的内容选项(text、highlights、summary、livecrawl)



3. 获取内容

获取一个或多个 URL 的完整内容:

bash
echo {action:getcontents,urls:[https://example.com,https://other.com],text:{maxcharacters:1000}} \
| EXAAPIKEY=$(grep -E ^EXAAPIKEY= ~/.openclaw/workspace/.env | cut -d= -f2 | tr -d ) \
~/.openclaw/workspace/skills/exa-search/bin/exa-search



输出格式

所有操作在标准输出返回 JSON:

json
{
ok: true,
action: search,
results: [
{
url: https://...,
title: ...,
score: 0.87,
author: ...,
published_date: 2026-01-15,
image: https://...,
favicon: https://...,
text: ...,
highlights: [...],
summary: ...
}
],
formatted: ## 标题\n...
}

错误时:
json
{ ok: false, error: ... }

formatted 字段是可直接使用的 Markdown 格式——可以直接发送给用户。



速度参考(相同查询,3 次运行)


模式平均峰值
livecrawl: never(即时)~440ms308ms
默认(无 livecrawl)
~927ms | 629ms |

峰值速度比 Exa MCP 快约 18.7 倍。



辅助:加载 API 密钥

bash
EXAAPIKEY=$(grep -E ^EXAAPIKEY= ~/.openclaw/workspace/.env | cut -d= -f2 | tr -d )

或在较长工作流顶部一次性导出:

bash
export EXAAPIKEY=$(grep -E ^EXAAPIKEY= ~/.openclaw/workspace/.env | cut -d= -f2 | tr -d )
echo {query:...} | ~/.openclaw/workspace/skills/exa-search/bin/exa-search



调用模式

bash
EXAAPIKEY=$(grep -E ^EXAAPIKEY= ~/.openclaw/workspace/.env | cut -d= -f2 | tr -d )
echo {query:...,num_results:5,livecrawl:never} \
| EXAAPIKEY=$EXAAPIKEY ~/.openclaw/workspace/skills/exa-search/bin/exa-search

输出中的 formatted 字段是可直接使用的 Markdown 格式——直接发送给用户。



模式选择(每次搜索都要慎重考虑)


场景livecrawltype
文档、教程、课程、参考资料neverneural
一般研究——人物、工具、概念、公司
never | neural |
| 精确函数名、错误信息、包名 | never | keyword |
| 最新版本、更新日志、GitHub 仓库 | fallback | auto |
| 过去 1-2 周的新闻或公告 | fallback | neural |
| 突发新闻、实时价格、今日事件 | always | neural |
| 不确定时 | fallback | auto |

默认推荐: livecrawl: never,type: neural——最快,适用于 80% 的搜索。



何时使用每个操作

search(默认)——用于从查询字符串中检索任何信息。

find_similar——当你有 URL 并想要更多类似内容时使用:相关文章、替代工具、相似仓库、竞品。
bash
echo {action:findsimilar,url:https://...,numresults:5,livecrawl:never} | EXAAPIKEY=$EXAAPIKEY ...

get_contents——当你有特定 URL 并需要其全文时使用:文档页面、博客文章、GitHub README、论文。当 URL 已知时比 search 更快。
bash
echo {action:getcontents,urls:[https://...],text:{maxcharacters:3000}} | EXAAPIKEY=$EXAAPIKEY ...



为研究任务丰富结果

在撰写报告、摘要或比较多个结果时——请求每个结果

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 exa-search-rust-1776294802 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 exa-search-rust-1776294802 技能

通过命令行安装

skillhub install exa-search-rust-1776294802

下载

⬇ 下载 exa-search v1.0.3(免费)

文件大小: 16.83 KB | 发布时间: 2026-4-16 18:09

v1.0.3 最新 2026-4-16 18:09
Fix: mkdir bin/ in install.sh; update install dir name to match ClawHub slug

Archiver·手机版·闲社网·闲社论坛·智能体自动化市场· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部