Tool v1.0.0

perplexity-web-search

通过Perplexity进行网页搜索和URL获取(默认:sonar,可选:sonar-pro)。用于网页搜索、信息查询、获取URL内容或配置网页搜索设置。涵盖web_search工具(Perplexity直接API)和web_fetch工具...

ClawHub 更新于 2026-03-23 15 浏览
下载 SKILL

技能说明

通过Perplexity进行网页搜索和URL获取(默认:sonar,可选:sonar-pro)。用于网页搜索、信息查询、获取URL内容或配置网页搜索设置。涵盖web_search工具(Perplexity直接API)和web_fetch工具(HTML转Markdown提取)

使用场景

Search web or fetch URL content via Perplexity’s Sonar or Sonar-Pro API with HTML to Markdown extraction

查看英文原始说明

Web search and URL fetching via Perplexity (default: sonar, optional: sonar-pro). Use when searching the web, looking up information, fetching URL content, or configuring web search settings. Covers web_search tool (Perplexity direct API) and web_fetch tool (HTML to markdown extraction).

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/perplexity-web-search
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

3 个文件 · 21 kB
SKILL.md text/markdown
---
name: web_search
description: Web search and URL fetching via Perplexity (default: sonar, optional: sonar-pro). Use when searching the web, looking up information, fetching URL content, or configuring web search settings. Covers web_search tool (Perplexity direct API) and web_fetch tool (HTML to markdown extraction).
homepage: https://github.com/aligurelli/clawd/tree/main/skills/web_search
metadata: {"clawdbot":{"emoji":"🔎"}}
---

# Web Search Skill

Web search via Perplexity (default: sonar) and URL content fetching. Sonar-pro is optional for deeper analysis.

## Credentials

This skill uses the Perplexity key configured in your OpenClaw setup. No shared or third-party keys are used.

If your environment is not already configured, set `PERPLEXITY_API_KEY` or configure the key in OpenClaw config.

**Recommended default (cost-effective):**
```json5
{
  tools: {
    web: {
      search: {
        provider: "perplexity",
        perplexity: {
          apiKey: "<your-perplexity-api-key>",
          baseUrl: "https://api.perplexity.ai",
          model: "sonar"
        }
      }
    }
  }
}
```

**Optional deep mode (higher quality, higher cost):**
```json5
{
  tools: {
    web: {
      search: {
        perplexity: {
          model: "sonar-pro"
        }
      }
    }
  }
}
```

Use `sonar-pro` only when you explicitly need deeper analysis.

Get your API key at: https://www.perplexity.ai/settings/api

## Data Handling

- All search queries are sent to Perplexity's API (`https://api.perplexity.ai`)
- `web_fetch` fetched page contents are processed locally by OpenClaw (not sent to Perplexity)
- This instruction-only skill does not persist data by itself; query handling/retention is governed by OpenClaw + Perplexity policies
- Search queries are sent to Perplexity; do not include secrets or private data in queries
- Your own Perplexity API key and account terms apply

## web_search

Search the web. Returns AI-synthesized answers with citations.

Parameters:
- `query` (required) — search query
- `count` (1-10) — number of results
- `country` — 2-letter code: TR, US, DE, ALL
- `search_lang` — result language: tr, en, de, fr
- `freshness` — time filter: pd (day), pw (week), pm (month), py (year)

### Including Social Platform Results

For market research or user feedback queries, add social platform names naturally to the query. This makes Perplexity include results from Reddit, Twitter, Quora etc. alongside normal web results — no filtering, no restriction, just broader coverage.

```
web_search(query="cell tower finder app complaints features users want reddit twitter quora")
```

Perplexity will pull from both regular websites AND social platforms in one search.

For cases where you ONLY want a specific platform, use `site:` operator:
```
web_search(query="site:reddit.com best stud finder app")
```

Examples:
```
web_search(query="latest Flutter updates", freshness="pw")
web_search(query="İstanbul hava durumu", country="TR", search_lang="tr")
web_search(query="AI news", count=5, freshness="pd")
web_search(query="GLP-1 tracker app wish features complaints reddit twitter quora")
```

## web_fetch

Fetch URL content as markdown/text. No JS execution. Content is extracted locally.

Parameters:
- `url` (required) — HTTP/HTTPS URL
- `extractMode` — markdown (default) or text
- `maxChars` — truncation limit

## Perplexity Models (User Choice)

- `sonar` (default) — fast Q&A + web search, cost-effective
- `sonar-pro` — multi-step reasoning + web search (use when deeper analysis is needed)
- `sonar-reasoning-pro` — deep chain-of-thought research (expensive, use sparingly)

Set the model in config based on your budget/quality preference.

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。