AgentSkillsCN

perplexity

通过 Perplexity API 使用 AI 助力搜索网络。返回有据可查的回复并附上引用。支持批量查询。

SKILL.md
--- frontmatter
name: perplexity
description: Search the web with AI-powered answers via Perplexity API. Returns grounded responses with citations. Supports batch queries.
homepage: https://docs.perplexity.ai
metadata: {"clawdbot":{"emoji":"🔮","requires":{"bins":["node"],"env":["PERPLEXITY_API_KEY"]},"primaryEnv":"PERPLEXITY_API_KEY"}}

Perplexity Search

AI-powered web search that returns grounded answers with citations.

Search

Single query:

bash
node {baseDir}/scripts/search.mjs "what's happening in AI today"

Multiple queries (batch):

bash
node {baseDir}/scripts/search.mjs "What is Perplexity?" "Latest AI news" "Best coffee in NYC"

Options

  • --json: Output raw JSON response

Notes

  • Requires PERPLEXITY_API_KEY environment variable
  • Responses include citations when available
  • Batch queries are processed in a single API call