Community寫作與編輯github.com

tavily-ai/tavily-extract

透過 Tavily CLI 從指定 URL 提取乾淨的 Markdown 或純文字內容。當使用者提供一個或多個 URL 並希望取得其內容時使用此技能,例如說「提取」、「抓取內容」、「取得頁面」、「閱讀此網頁」或需要網頁的純文字。支援 JavaScript 渲染頁面,回傳針對 LLM 最佳化的 Markdown,並支援查詢導向區塊擷取,可單次處理最多 20 個 URL。

tavily-extract 是什麼?

tavily-ai/tavily-extract 是一個專門從指定 URL 提取乾淨 Markdown 或純文字內容的技能,特別適合開發者或 AI 代理使用。它透過 Tavily CLI 運作,能處理 JavaScript 渲染的動態頁面,並回傳經過最佳化、易於大型語言模型 (LLM) 處理的 Markdown 格式。此技能支援查詢導向的區塊擷取,讓使用者能根據特定查詢詞只提取相關段落,而非整個頁面內容。主要應用於 Claude Code、Cursor、Codex 等 AI 開發工具,當使用者需要網頁的乾淨文字(例如說「提取」、「抓取內容」、「閱讀此網頁」)時,可直接呼叫此技能。單次呼叫最多可處理 20 個 URL,大幅提升批量內容擷取的效率。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/tavily-ai/skills/tree/main/skills/tavily-extract

Installed? Explore more 寫作與編輯 skills: steipete/notion, langchain-ai/langchain, bytedance/podcast-generation · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

tavily-extract 是做什麼的?

透過 Tavily CLI 從指定 URL 提取乾淨的 Markdown 或純文字內容。當使用者提供一個或多個 URL 並希望取得其內容時使用此技能,例如說「提取」、「抓取內容」、「取得頁面」、「閱讀此網頁」或需要網頁的純文字。支援 JavaScript 渲染頁面,回傳針對 LLM 最佳化的 Markdown,並支援查詢導向區塊擷取,可單次處理最多 20 個 URL。

使用方式

使用 tavily extract 命令並指定 URL 和選用參數:

tavily extract [options] <url>

選項

  • --urls:要提取的 URL 列表(以空格分隔)
  • --query:用於查詢導向區塊擷取的查詢詞
  • --format:輸出格式,可選 markdown 或 text(預設為 markdown)
  • --token-limit:每個提取結果的最大 token 數

範例

提取單個 URL 的 Markdown 內容:

tavily extract https://example.com/article

使用查詢導向區塊擷取提取特定段落:

tavily extract --urls https://example.com/page --query "API 參考"

以純文字格式提取並限制 token 數量:

tavily extract --urls https://example.com/doc --format text --token-limit 2000

批量提取多個 URL(最多 20 個):

tavily extract --urls https://example.com/page1 https://example.com/page2

注意事項

  • 確保已安裝 Tavily CLI 並設定好 API 金鑰
  • 支援處理 JavaScript 渲染的動態頁面
  • 可同時處理最多 20 個 URL
  • 回傳的 Markdown 已針對 LLM 最佳化,便於後續處理

安裝與設定

安裝 Tavily CLI:

pip install tavily-cli

設定 API 金鑰(需從 Tavily 取得):

export TAVILY_API_KEY=your_api_key_here

相關技能

  • tavily-ai/tavily-search:使用 Tavily 進行網頁搜尋,尋找相關內容

授權條款

請參閱 Tavily 的官方授權資訊。

Individual skills in this repo

This repo contains 11 individual skills — each has its own dedicated page.

tavily-ai/crawl

Crawl any website and save pages as local markdown files. Use when you need to download documentation, knowledge bases, or web content for offline access or analysis. No code required - just provide a URL.

tavily-ai/extract

Extract content from specific URLs using Tavily's extraction API. Returns clean markdown/text from web pages. Use when you have specific URLs and need their content without writing code.

tavily-ai/research

Comprehensive research grounded in web data with explicit citations. Use when you need multi-source synthesis—comparisons, current events, market analysis, detailed reports.

tavily-ai/search

Search the web using Tavily's LLM-optimized search API. Returns relevant results with content snippets, scores, and metadata. Use when you need to find web content on any topic without writing code.

tavily-ai/tavily-best-practices

Build production-ready Tavily integrations with best practices baked in. Reference documentation for developers using coding assistants (Claude Code, Cursor, etc.) to implement web search, content extraction, crawling, and research in agentic workflows, RAG systems, or autonomous agents.

tavily-ai/tavily-cli

Web search, content extraction, crawling, and deep research via the Tavily CLI. Use this skill whenever the user wants to search the web, find articles, research a topic, look something up online, extract content from a URL, grab text from a webpage, crawl documentation, download a site's pages, discover URLs on a domain, or conduct in-depth research with citations. Also use when they say "fetch this page", "pull the content from", "get the page at https://", "find me articles about", or reference extracting data from external websites. This provides LLM-optimized web search, content extraction, site crawling, URL discovery, and AI-powered deep research — capabilities beyond what agents can do natively. Do NOT trigger for local file operations, git commands, deployments, or code editing tasks.

tavily-ai/tavily-crawl

Crawl websites and extract content from multiple pages via the Tavily CLI. Use this skill when the user wants to crawl a site, download documentation, extract an entire docs section, bulk-extract pages, save a site as local markdown files, or says "crawl", "get all the pages", "download the docs", "extract everything under /docs", "bulk extract", or needs content from many pages on the same domain. Supports depth/breadth control, path filtering, semantic instructions, and saving each page as a local markdown file.

tavily-ai/tavily-dynamic-search

Programmatic web search with context isolation. Use this skill for any research task where you need to search the web, filter results, and extract specific information — without polluting your context window with raw HTML and boilerplate. This is the default skill for web research. Triggered by "search for", "look up", "find", "research", "what's the latest on", or any query that requires current web information. Also use when asked to "search and filter", "find the important parts", or "extract the key details" — any case where the user wants curated, noise-free content.

tavily-ai/tavily-map

Discover and list all URLs on a website without extracting content, via the Tavily CLI. Use this skill when the user wants to find a specific page on a large site, list all URLs, see the site structure, find where something is on a domain, or says "map the site", "find the URL for", "what pages are on", "list all pages", or "site structure". Faster than crawling — returns URLs only. Essential when you know the site but not the exact page. Combine with extract for targeted content retrieval.

tavily-ai/tavily-research

Conduct comprehensive AI-powered research with citations via the Tavily CLI. Use this skill when the user wants deep research, a detailed report, a comparison, market analysis, literature review, or says "research", "investigate", "analyze in depth", "compare X vs Y", "what does the market look like for", or needs multi-source synthesis with explicit citations. Returns a structured report grounded in web sources. Takes 30-120 seconds. For quick fact-finding, use tavily-search instead.

tavily-ai/tavily-search

Search the web with LLM-optimized results via the Tavily CLI. Use this skill when the user wants to search the web, find articles, look up information, get recent news, discover sources, or says "search for", "find me", "look up", "what's the latest on", "find articles about", or needs current information from the internet. Returns relevant results with content snippets, relevance scores, and metadata — optimized for LLM consumption. Supports domain filtering, time ranges, and multiple search depths.

相關技能