简介
Exa AI 官方搜索研究技能,支持智能网页/代码搜索、内容提取与异步多步研究任务,为开发者与研究者提供结构化数据获取能力。
原始描述
AI-powered web and code search, content extraction, URL crawling, and asynchronous research with customizable schema and filters using EXA_API_KEY.
通过你的 Agent 添加
点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。
或者手动安装
包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。
技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。
中文使用说明 来自收录源
核心用法
exa-full 是 Exa AI 官方推出的 Claude Code 技能,封装了 Exa 搜索与研究 API 的完整能力。用户可通过环境变量配置 EXA_API_KEY 后,调用多个 Shell 脚本实现不同场景:
- 搜索 ( (
search.sh):支持 auto/neural/fast/deep/instant 五种搜索模式,可按类别(论文、新闻、公司、人物等)、域名、日期范围过滤 - 内容提取 ( (
content.sh):抓取指定 URL 的完整页面内容,支持子页面爬取与实时爬取模式 - 代码搜索 ( (
code.sh):针对编程查询优化,返回代码片段与文档上下文 - 异步研究 ( (
research.sh/research_create.sh/research_poll.sh):创建多步骤研究任务,支持通过 JSON Schema 定义结构化输出,自动轮询直至完成
显著优点
- 搜索质量分层:五种搜索类型覆盖从即时响应到深度合成的不同需求,Agent 可按场景智能选择
- 结构化输出:研究任务支持
outputSchema,可直接获取符合预定义格式的 JSON 结果,便于下游处理 - 安全设计完善:敏感文件上传检查、jq 安全构建 JSON、HTTPS 通信、HTTP 状态码校验等多重防护
- 来源可信:Exa AI 官方集成,代码托管于维护良好的社区仓库,版本迭代规范
潜在缺点与局限性
- 网络强依赖:所有功能依赖 Exa API 可用性,离线环境无法使用
- 成本考量:Exa API 为商业服务,高频调用可能产生费用
- 异步任务延迟:研究任务需轮询等待,默认最长 240 秒,实时性要求高的场景受限
- 人物/公司搜索限制:此类别不支持排除域名和日期过滤,灵活性降低
适合的目标群体
- 需要高质量网络搜索的研究人员、分析师
- 构建 RAG 系统的开发者,需获取结构化网页内容
- 编程场景下需要代码上下文的技术用户
- 需要自动化多步研究任务的知识工作者
使用风险
- API 密钥泄露风险:需妥善保管
EXA_API_KEY,避免提交至版本控制 - Schema 文件误用:虽已实现敏感文件检查,但用户仍需确保不上传内部机密文档
- 第三方数据暴露:搜索查询与提取内容发送至 Exa 服务器,敏感信息需谨慎处理
- 性能波动:API 响应时间受网络与 Exa 服务端负载影响,极端情况下可能超时
技能正文
name: exa-full version: 1.2.1 description: Exa AI search + Research API. Supports web/code search, content extraction, and async multi-step research tasks with outputSchema. homepage: https://exa.ai metadata: {"openclaw":{"emoji":"🔍","requires":{"bins":["curl","jq"],"env":["EXA_API_KEY"]}}}
Exa - Search + Research
Use this skill for web search, code-context search, URL content extraction, and async research workflows.
What This Skill Does
- Run Exa web search with optional category and domain filters.
- Retrieve full page content (and optional subpage crawling).
- Find code and docs context for programming queries.
- Run async research tasks (one-shot or create/poll workflows).
- Support optional structured outputs via
outputSchema.
Setup
Set EXA_API_KEY using one of these methods.
export EXA_API_KEY="your-exa-api-key"
# .env next to SKILL.md
EXA_API_KEY=your-exa-api-key
Behavior:
- If
EXA_API_KEYis missing in the environment, scripts load onlyEXA_API_KEYfrom.env. - Other
.envvariables are ignored by the loader.
Safety and Data Handling
SCHEMA_FILEcontent is sent tohttps://api.exa.ai/research/v1asoutputSchema.- Never use sensitive local files for
SCHEMA_FILE(for example:.env, key/cert files, secrets, internal confidential docs). research_create.shblocks obvious sensitive paths/suffixes (for example:.env,.pem,.key,.p12,.pfx,id_rsa).
Command Quick Reference
Search
bash scripts/search.sh "query"
Main env vars:
NUM=10(max 100)TYPE=auto(auto,neural,fast,deep,instant)CATEGORY=(company,research paper,news,tweet,personal site,financial report,people)DOMAINS=domain1.com,domain2.comEXCLUDE=domain1.com,domain2.comSINCE=YYYY-MM-DDUNTIL=YYYY-MM-DDLOCATION=NL
Constraints:
EXCLUDEis not supported whenCATEGORY=companyorCATEGORY=people.SINCEandUNTILare not supported whenCATEGORY=companyorCATEGORY=people.- When
CATEGORY=people,DOMAINSaccepts LinkedIn domains only (linkedin.com,www.linkedin.com,*.linkedin.com).
Content Extraction
bash scripts/content.sh "url1" "url2"
Main env vars:
MAX_CHARACTERS=2000HIGHLIGHT_SENTENCES=3HIGHLIGHTS_PER_URL=2SUBPAGES=10SUBPAGE_TARGET="docs,reference,api"LIVECRAWL=preferred(preferred,always,fallback)LIVECRAWL_TIMEOUT=12000
Code Context Search
bash scripts/code.sh "query" [num_results]
Research (One-shot)
bash scripts/research.sh "instructions"
Main env vars:
MODEL=exa-researchorMODEL=exa-research-proSCHEMA_FILE=path/to/schema.jsonPOLL_INTERVAL=2MAX_WAIT_SECONDS=240EVENTS=true
Research (Create/Poll)
bash scripts/research_create.sh "instructions" | jq
bash scripts/research_poll.sh "researchId" | jq
Agent Decision Rules
Choose TYPE for Search
Use this decision order:
- User explicitly asks for realtime or autocomplete ->
TYPE=instant. - Task needs broad coverage or deeper synthesis ->
TYPE=deep. - User asks for speed/quality balance ->
TYPE=fast. - Otherwise ->
TYPE=auto(default).
Fallback/escalation:
- If too slow or time-sensitive:
deep -> auto -> fast -> instant. - If too shallow:
instant -> fast -> auto -> deep. - Explicit user requirement always wins.
Recommended pattern:
TYPE=auto bash scripts/search.sh "query"
Common Pitfalls
- Do not pass sensitive files to
SCHEMA_FILE. - Do not combine
CATEGORY=people|companywithEXCLUDE,SINCE, orUNTIL. - Prefer
https://docs.exa.ai/for subpage crawling seeds (more reliable thanhttps://exa.ai/docs/reference/).
More Examples
See EXAMPLES.md for grouped command examples and edge-case workflows.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。