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_KEY is missing in the environment, scripts load only EXA_API_KEY from .env.
- Other
.env variables are ignored by the loader.
Safety and Data Handling
SCHEMA_FILE content is sent to https://api.exa.ai/research/v1 as outputSchema.
- Never use sensitive local files for
SCHEMA_FILE (for example: .env, key/cert files, secrets, internal confidential docs).
research_create.sh blocks 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.com
EXCLUDE=domain1.com,domain2.com
SINCE=YYYY-MM-DD
UNTIL=YYYY-MM-DD
LOCATION=NL
Constraints:
EXCLUDE is not supported when CATEGORY=company or CATEGORY=people.
SINCE and UNTIL are not supported when CATEGORY=company or CATEGORY=people.
- When
CATEGORY=people, DOMAINS accepts LinkedIn domains only (linkedin.com, www.linkedin.com, *.linkedin.com).
Content Extraction
bash scripts/content.sh "url1" "url2"
Main env vars:
MAX_CHARACTERS=2000
HIGHLIGHT_SENTENCES=3
HIGHLIGHTS_PER_URL=2
SUBPAGES=10
SUBPAGE_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-research or MODEL=exa-research-pro
SCHEMA_FILE=path/to/schema.json
POLL_INTERVAL=2
MAX_WAIT_SECONDS=240
EVENTS=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|company with EXCLUDE, SINCE, or UNTIL.
- Prefer
https://docs.exa.ai/ for subpage crawling seeds (more reliable than https://exa.ai/docs/reference/).
More Examples
See EXAMPLES.md for grouped command examples and edge-case workflows.
1---
2name: exa-full
3version: 1.2.1
4description: Exa AI search + Research API. Supports web/code search, content extraction, and async multi-step research tasks with outputSchema.
5homepage: https://exa.ai
6metadata:
7 source: https://skillmd.com/skills/modbender/exa-full
8 openclaw:
9 emoji: 🔍
10 requires:
11 bins:
12 - curl
13 - jq
14 env:
15 - EXA_API_KEY
16---
17
18# Exa - Search + Research
19
20Use this skill for web search, code-context search, URL content extraction, and async research workflows.
21
22## What This Skill Does
23
24- Run Exa web search with optional category and domain filters.
25- Retrieve full page content (and optional subpage crawling).
26- Find code and docs context for programming queries.
27- Run async research tasks (one-shot or create/poll workflows).
28- Support optional structured outputs via `outputSchema`.
29
30## Setup
31
32Set `EXA_API_KEY` using one of these methods.
33
34```bash
35export EXA_API_KEY="your-exa-api-key"
36```
37
38```bash
39# .env next to SKILL.md
40EXA_API_KEY=your-exa-api-key
41```
42
43Behavior:
44- If `EXA_API_KEY` is missing in the environment, scripts load only `EXA_API_KEY` from `.env`.
45- Other `.env` variables are ignored by the loader.
46
47## Safety and Data Handling
48
49- `SCHEMA_FILE` content is sent to `https://api.exa.ai/research/v1` as `outputSchema`.
50- Never use sensitive local files for `SCHEMA_FILE` (for example: `.env`, key/cert files, secrets, internal confidential docs).
51- `research_create.sh` blocks obvious sensitive paths/suffixes (for example: `.env`, `.pem`, `.key`, `.p12`, `.pfx`, `id_rsa`).
52
53## Command Quick Reference
54
55### Search
56
57```bash
58bash scripts/search.sh "query"
59```
60
61Main env vars:
62- `NUM=10` (max 100)
63- `TYPE=auto` (`auto`, `neural`, `fast`, `deep`, `instant`)
64- `CATEGORY=` (`company`, `research paper`, `news`, `tweet`, `personal site`, `financial report`, `people`)
65- `DOMAINS=domain1.com,domain2.com`
66- `EXCLUDE=domain1.com,domain2.com`
67- `SINCE=YYYY-MM-DD`
68- `UNTIL=YYYY-MM-DD`
69- `LOCATION=NL`
70
71Constraints:
72- `EXCLUDE` is not supported when `CATEGORY=company` or `CATEGORY=people`.
73- `SINCE` and `UNTIL` are not supported when `CATEGORY=company` or `CATEGORY=people`.
74- When `CATEGORY=people`, `DOMAINS` accepts LinkedIn domains only (`linkedin.com`, `www.linkedin.com`, `*.linkedin.com`).
75
76### Content Extraction
77
78```bash
79bash scripts/content.sh "url1" "url2"
80```
81
82Main env vars:
83- `MAX_CHARACTERS=2000`
84- `HIGHLIGHT_SENTENCES=3`
85- `HIGHLIGHTS_PER_URL=2`
86- `SUBPAGES=10`
87- `SUBPAGE_TARGET="docs,reference,api"`
88- `LIVECRAWL=preferred` (`preferred`, `always`, `fallback`)
89- `LIVECRAWL_TIMEOUT=12000`
90
91### Code Context Search
92
93```bash
94bash scripts/code.sh "query" [num_results]
95```
96
97### Research (One-shot)
98
99```bash
100bash scripts/research.sh "instructions"
101```
102
103Main env vars:
104- `MODEL=exa-research` or `MODEL=exa-research-pro`
105- `SCHEMA_FILE=path/to/schema.json`
106- `POLL_INTERVAL=2`
107- `MAX_WAIT_SECONDS=240`
108- `EVENTS=true`
109
110### Research (Create/Poll)
111
112```bash
113bash scripts/research_create.sh "instructions" | jq
114bash scripts/research_poll.sh "researchId" | jq
115```
116
117## Agent Decision Rules
118
119### Choose `TYPE` for Search
120
121Use this decision order:
1221. User explicitly asks for realtime or autocomplete -> `TYPE=instant`.
1232. Task needs broad coverage or deeper synthesis -> `TYPE=deep`.
1243. User asks for speed/quality balance -> `TYPE=fast`.
1254. Otherwise -> `TYPE=auto` (default).
126
127Fallback/escalation:
128- If too slow or time-sensitive: `deep -> auto -> fast -> instant`.
129- If too shallow: `instant -> fast -> auto -> deep`.
130- Explicit user requirement always wins.
131
132Recommended pattern:
133
134```bash
135TYPE=auto bash scripts/search.sh "query"
136```
137
138## Common Pitfalls
139
140- Do not pass sensitive files to `SCHEMA_FILE`.
141- Do not combine `CATEGORY=people|company` with `EXCLUDE`, `SINCE`, or `UNTIL`.
142- Prefer `https://docs.exa.ai/` for subpage crawling seeds (more reliable than `https://exa.ai/docs/reference/`).
143
144## More Examples
145
146See [EXAMPLES.md](EXAMPLES.md) for grouped command examples and edge-case workflows.