Files
openclaw-skill/skills/tavily-tool/references/tavily-api.md
Selig f1a6df4ca4 add 6 skills to repo + update skill-review for xiaoming
- Add code-interpreter, kokoro-tts, remotion-best-practices,
  research-to-paper-slides, summarize, tavily-tool to source repo
- skill-review: add main/xiaoming agent mapping in handler.ts + SKILL.md
- tts-voice: handler.ts updates from agent workspace

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 22:59:43 +08:00

56 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Tavily API notes (quick reference)
## Endpoint
- Search: `POST https://api.tavily.com/search`
## Auth
- Send the API key via HTTP header: `Authorization: Bearer <TAVILY_API_KEY>`.
- This skills scripts read the key from **env var only**: `TAVILY_API_KEY`.
## Common request fields
```json
{
"query": "...",
"max_results": 5,
"include_domains": ["example.com"],
"exclude_domains": ["spam.com"]
}
```
(Additional Tavily options exist; this skills CLI supports only a common subset for discovery use-cases.)
## Script usage
### JSON output (stdout) + URL list (stderr)
```bash
export TAVILY_API_KEY="..."
node skills/tavily/scripts/tavily_search.js --query "best open source vector database" --max_results 5
```
### URLs only
```bash
export TAVILY_API_KEY="..."
node skills/tavily/scripts/tavily_search.js --query "SvelteKit tutorial" --urls-only
```
### Include / exclude domains
```bash
export TAVILY_API_KEY="..."
node skills/tavily/scripts/tavily_search.js \
--query "websocket load testing" \
--include_domains k6.io,github.com \
--exclude_domains medium.com
```
## Notes
- Exit code `2` indicates missing required args or missing `TAVILY_API_KEY`.
- Exit code `3` indicates network/HTTP failure.
- Exit code `4` indicates a non-JSON response.