Extract clean markdown or text content from specific URLs via the Tavily CLI. Use this skill when the user has one or more URLs and wants their content, says "extract", "grab the content from", "pull the text from", "get the page at", "read this webpage", or needs clean text from web pages. Handles JavaScript-rendered pages, returns LLM-optimized markdown, and supports query-focused chunking for targeted extraction. Can process up to 20 URLs in a single call.
Getting started
Full instructionsInstall the skill, then ask your AI tool for the task in plain words. The full SKILL.md below shows what it covers.
Instructions: SKILL.mdv1.0.1
tavily extract
Extract clean markdown or text content from one or more URLs.
Before running
Run extract directly when tvly is available. Extract supports capped keyless
access, so do not look for an API key or authenticate before the first request.
If tvly is missing, follow the tavily-cli setup
before retrying. If the keyless cap is reached in an interactive session, run
tvly login to open browser OAuth, then retry the original extraction once. In
an unattended environment, report the cap and authentication options instead
of starting an interactive flow. Do not start a second login immediately after
guided setup has completed.
When to use
- You have a specific URL and want its content
- You need text from JavaScript-rendered pages
- Step 2 in the workflow: search → extract → map → crawl → research
Quick start
# Single URL
tvly extract "https://example.com/article" --json
# Multiple URLs
tvly extract "https://example.com/page1" "https://example.com/page2" --json
# Query-focused extraction (returns relevant chunks only)
tvly extract "https://example.com/docs" --query "authentication API" --chunks-per-source 3 --json
# JS-heavy pages
tvly extract "https://app.example.com" --extract-depth advanced --json
# Save to file
tvly extract "https://example.com/article" -o article.json
Options
| Option | Description |
|---|---|
--query |
Rerank chunks by relevance to this query |
--chunks-per-source |
Chunks per URL (1-5, requires --query) |
--extract-depth |
basic (default) or advanced (for JS pages) |
--format |
markdown (default) or text |
--include-images |
Include image URLs |
--timeout |
Max wait time (1-60 seconds) |
-o, --output |
Save the JSON response to a file |
--json |
Structured JSON output |
Extract depth
| Depth | When to use |
|---|---|
basic |
Simple pages, fast — try this first |
advanced |
JS-rendered SPAs, dynamic content, tables |
Tips
- Max 20 URLs per request — batch larger lists into multiple calls.
- Use
--query+--chunks-per-sourceto get only relevant content instead of full pages. - Try
basicfirst, fall back toadvancedif content is missing. - Set
--timeoutfor slow pages (up to 60s). - Inspect
failed_resultseven after exit code 0. A successful request can
still return no extracted pages. Retry the affected URL withadvancedwhen
appropriate, otherwise report the per-URL failure instead of treating the
request as complete. - If search results already contain the content you need (via
--include-raw-content), skip the extract step.
See also
- tavily-search — find pages when you don't have a URL
- tavily-crawl — extract content from many pages on a site
Explore more skills
Browse all- Tavily EntityFill in a company, person, or organization for a CRM from the web, using Tavily, including a CSV of rows the user…
- Tavily MonitorBuild a Tavily search or extraction that runs on a cadence, with a saved baseline. Search monitors set max_age_hours to…
- Tavily Best PracticesBuild production-ready Tavily integrations with best practices baked in. Reference documentation for developers using…
- Tavily MapDiscover and list all URLs on a website without extracting content, via the Tavily CLI. Use this skill when the user…
- Senior FrontendBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle…
- UI Design SystemUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens…
Security
Reviews (0)
More from Tavily AI
View source →Frequently asked questions about tavily-extract
What does the tavily-extract skill do?
Extract clean markdown or text content from specific URLs via the Tavily CLI. Use this skill when the user has one or more URLs and wants their content, says "extract", "grab the content from", "pull the text from", "get the page at", "read this webpage", or needs clean text from web pages. Handles JavaScript-rendered pages, returns LLM-optimized markdown, and supports query-focused chunking for targeted extraction. Can process up to 20 URLs in a single call. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the tavily-extract skill?
Run `npx @skills-hub-ai/cli install tavily-extract` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/tavily-extract/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does tavily-extract work with?
tavily-extract runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the tavily-extract skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use tavily-extract after installing it?
In Claude Code, type `/tavily-extract` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the tavily-extract skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.
Badge for your README
Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.
[](https://skills-hub.ai/skills/tavily-extract)<a href="https://skills-hub.ai/skills/tavily-extract"><img src="https://skills-hub.ai/api/badges/skill/tavily-extract" alt="Install on Skills Hub"></a>More options in the badge docs.