brave-search
提供无需浏览器的轻量级网络搜索与网页内容提取能力,支持关键词检索、结果数量控制及指定网页的纯文本内容抓取,适用于技术文档查询、事实核查和实时信息获取等场景。
文档处理研究
| name | brave-search |
| description | Web search and content extraction via Brave Search API. Use for searching documentation, facts, or any web content. Lightweight, no browser required. |
Brave Search
Headless web search and content extraction using Brave Search. No browser required.
Setup
Run once before first use:
▼bash复制代码cd ~/Projects/agent-scripts/skills/brave-search npm ci
Needs env: BRAVE_API_KEY.
Search
▼bash复制代码./search.js "query" # Basic search (5 results) ./search.js "query" -n 10 # More results ./search.js "query" --content # Include page content as markdown ./search.js "query" -n 3 --content # Combined
Extract Page Content
▼bash复制代码./content.js https://example.com/article
Fetches a URL and extracts readable content as markdown.
Output Format
▼text复制代码--- Result 1 --- Title: Page Title Link: https://example.com/page Snippet: Description from search results Content: (if --content flag used) Markdown content extracted from the page... --- Result 2 --- ...
When to Use
- Searching for documentation or API references
- Looking up facts or current information
- Fetching content from specific URLs
- Any task requiring web search without interactive browsing
文档处理
研究









