/install liang-tavily-extract
Tavily Extract
Extract clean content from specific URLs. Ideal when you know which pages you want content from.
Authentication
Get your API key at https://tavily.com and add to your OpenClaw config:
{
"skills": {
"entries": {
"tavily-extract": {
"enabled": true,
"apiKey": "tvly-YOUR_API_KEY_HERE"
}
}
}
}
Or set in environment variable:
export TAVILY_API_KEY="tvly-YOUR_API_KEY_HERE"
Quick Start
Using the Script
node {baseDir}/scripts/extract.mjs "https://example.com/article"
node {baseDir}/scripts/extract.mjs "url1,url2,url3"
node {baseDir}/scripts/extract.mjs "url" --query "authentication API"
Examples
# Single URL
node {baseDir}/scripts/extract.mjs "https://docs.python.org/3/tutorial/classes.html"
# Multiple URLs
node {baseDir}/scripts/extract.mjs "https://example.com/page1,https://example.com/page2"
# With query focus
node {baseDir}/scripts/extract.mjs "https://example.com/docs" --query "authentication API"
# Advanced extraction for JS pages
node {baseDir}/scripts/extract.mjs "https://app.example.com" --depth advanced --timeout 60
Options
| Option | Description | Default |
|---|---|---|
--query \x3Ctext> |
Rerank chunks by relevance | - |
--chunks \x3Cn> |
Chunks per URL (1-5, requires query) | 3 |
--depth \x3Cmode> |
Extract depth: basic or advanced |
basic |
--format \x3Cfmt> |
Output format: markdown or text |
markdown |
--timeout \x3Csec> |
Max wait time (1-60 seconds) | varies |
--json |
Output raw JSON | false |
Extract Depth
| Depth | When to Use |
|---|---|
basic |
Simple text extraction, faster |
advanced |
Dynamic/JS-rendered pages, tables, structured data |
Tips
- Max 20 URLs per request - batch larger lists
- Use
--query+--chunksto get only relevant content - Try
basicfirst, fall back toadvancedif content is missing - Set longer
--timeoutfor slow pages (up to 60s) - Check
failed_resultsin JSON output for URLs that couldn't be extracted
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install liang-tavily-extract - After installation, invoke the skill by name or use
/liang-tavily-extract - Provide required inputs per the skill's parameter spec and get structured output
What is Tavily Extract?
Extract content from specific URLs using Tavily's extraction API. Returns clean markdown/text from web pages. It is an AI Agent Skill for Claude Code / OpenClaw, with 426 downloads so far.
How do I install Tavily Extract?
Run "/install liang-tavily-extract" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Tavily Extract free?
Yes, Tavily Extract is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Tavily Extract support?
Tavily Extract is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Tavily Extract?
It is built and maintained by Liang (@matthew77); the current version is v1.0.0.