使用 DuckDuckGo 搜索网页,免费且无需 API 密钥。当用户要求搜索网页、查找信息、在线研究主题,或你需要获取训练数据中没有的最新信息时使用。当 web_search 工具不可用或未配置 API 密钥时,也请使用此功能。
使用 DuckDuckGo 搜索网页,免费且无需 API 密钥。当用户要求搜索网页、查找信息、在线研究主题,或你需要获取训练数据中没有的最新信息时使用。当 web_search 工具不可用或未配置 API 密钥时,也请使用此功能。
Search the web via DuckDuckGo free without an API key for current information or research queries
Search the web using DuckDuckGo. Free, no API key required. Use when the user asks to search the web, look something up, find information online, research a topic, or when you need to find current information that isn't in your training data. Also use when web_search tool is unavailable or has no API key configured.
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
---
name: ddg-search
description: Search the web using DuckDuckGo. Free, no API key required. Use when the user asks to search the web, look something up, find information online, research a topic, or when you need to find current information that isn't in your training data. Also use when web_search tool is unavailable or has no API key configured.
---
# DuckDuckGo Web Search
Search the web via DuckDuckGo using the `ddgs` Python library. No API key needed.
## Quick Usage
```bash
python3 skills/ddg-search/scripts/search.py "your search query" [count]
```
- `query` (required): Search terms
- `count` (optional): Number of results, default 5, max 20
## Output Format
Each result includes:
- **Title** — Page title
- **URL** — Direct link
- **Snippet** — Text excerpt
## Examples
```bash
# Basic search
python3 skills/ddg-search/scripts/search.py "latest AI news"
# More results
python3 skills/ddg-search/scripts/search.py "Python async tutorial" 10
```
## Follow-up
After searching, use `web_fetch` to read full content from any result URL.
## Dependencies
- `ddgs` Python package (install: `pip install --break-system-packages ddgs`)
## Limitations
- Unofficial scraping — may break if DuckDuckGo changes their frontend
- Rate limits possible under heavy use
- English-biased results by default
文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。