← Back to Plugins
Tools

Ddg Search

LSTM-Kirigaya By LSTM-Kirigaya 👁 4 views ▲ 0 votes

openclaw plugin for strong and free websearch and webpage content fetch (use duckduckgo)

GitHub

Install

openclaw plugins install @kirigaya/openclaw-ddg-search

README

# openclaw-ddg-search

[OpenClaw](https://openclaw.ai) 的 **DuckDuckGo 网页搜索与内容提取**插件。以 **CLI 命令**形式提供,**不注册 Agent 工具**。

## 功能

- `openclaw ddg-search search <query>`:根据关键词在 DuckDuckGo 搜索,返回 N 个结果
- `openclaw ddg-search get-page <url>`:获取网页主要内容并输出 Markdown

## 安装

```bash
openclaw plugins install @kirigaya/openclaw-ddg-search
```

本地开发:

```bash
openclaw plugins install ./openclaw-ddg-search
```

## TUI 配置

在 OpenClaw 配置(TUI 或 `openclaw.json`)中,`plugins.entries.openclaw-ddg-search.config`:

| 参数 | 说明 | 默认 |
|------|------|------|
| enableWebsearch | 是否暴露 `search` CLI 子命令 | true |
| enableGetWebPageMarkdown | 是否暴露 `get-page` CLI 子命令 | true |
| websearchTimeout | 搜索超时(毫秒) | 15000 |
| pageLoadTimeout | 网页加载超时(毫秒) | 15000 |

当某项为 `false` 时,对应 CLI 子命令不会注册。

## 使用

```bash
# 搜索
openclaw ddg-search search "OpenClaw 插件开发"
openclaw ddg-search search "TypeScript" --limit 5

# 获取网页 Markdown
openclaw ddg-search get-page "https://example.com/article"
```

## Agent 调用

Agent 需通过 **exec** 工具执行:

```
openclaw ddg-search search "关键词"
openclaw ddg-search get-page "https://..."
```

需在 Agent 配置中允许 `exec` 工具,并确保 `openclaw` 可执行。

## 前置条件

- 需安装 **Chrome 浏览器**(Playwright 使用系统 Chrome)
- 或运行 `npx playwright install chromium` 安装 Chromium

## License

MIT © [LSTM-Kirigaya](https://github.com/LSTM-Kirigaya)
tools

Comments

Sign in to leave a comment

Loading comments...