跳到正文
TakoAPI
返回技能列表

perplexity-wrapped

由 vacinc 提供

Web & Frontend Development
1.7k下载量由 clawskills.sh 提供
1星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Search the web with AI-powered answers via Perplexity API.

描述

该技能的功能

Web search tool wrapping the Perplexity API with three modes: ranked results via Search API, AI-generated answers with citations via Sonar API, and deep research via the Agentic Research API using models from OpenAI, Anthropic, Google, and xAI. All output is wrapped in untrusted-content boundaries to prevent prompt injection.

Combines three distinct Perplexity API modes in one CLI with built-in prompt injection protection, so agents can query the live web without manually sanitizing or attributing external content.

何时使用

  • Getting AI-summarized answers to current events questions
  • Finding cited sources for a research topic
  • Batch searching multiple queries in a single API call
  • Running deep analysis on complex technical subjects
  • Querying recent news or product releases without stale training data

示例工作流

输入

User asks: what's the current state of fusion energy research

智能体
  1. 1

    Runs search.mjs with the query in default Sonar mode

  2. 2

    Sends query to Perplexity Sonar API

  3. 3

    Receives AI-generated answer with inline citations

  4. 4

    Wraps response in untrusted-content boundaries

输出

AI-written summary of fusion energy research with numbered citations linking to source URLs, enclosed in <<<EXTERNAL_UNTRUSTED_CONTENT>>> markers

前置要求

  • Perplexity API key (PERPLEXITY_API_KEY environment variable or set in OpenClaw config)

安装

clawhub install vacinc/perplexity-wrapped

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接