perplexity-search
Original:🇺🇸 English
Translated
1 scriptsChecked / no sensitive code detected
A skill for performing web searches, research, and reasoning using the Perplexity API. Handles real-time web information retrieval, deep research analysis, and advanced reasoning tasks. Use when the user asks for web searches, research, or says things like "look up", "search for", "latest information", "research", or "analyze".
3installs
Added on
NPX Install
npx skill4agent add dotneet/claude-code-marketplace perplexity-searchTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Perplexity Search Skill
A skill for executing real-time web searches and research using the Perplexity API.
Purpose
This skill provides the following capabilities:
- perplexity_ask - Answer general questions (using sonar-pro model)
- perplexity_research - Deep research and comprehensive reports (using sonar-deep-research model)
- perplexity_reason - Advanced reasoning and analysis (using sonar-reasoning-pro model)
- perplexity_search - Retrieve web search results
When to Use
Use this skill in the following situations:
- User needs up-to-date information
- Received a question requiring web search
- Asked to perform deep research or investigation
- Complex analysis or reasoning is required
- Keywords like "look up", "search for", "latest..." are included
Prerequisites
- environment variable must be set
PERPLEXITY_API_KEY - Internet connection must be available
Usage
Basic Usage
Use the script to call the API.
scripts/perplexity_api.pybash
# General questions (ask)
python3 scripts/perplexity_api.py ask "your question"
# Deep research (research)
python3 scripts/perplexity_api.py research "research topic"
# Advanced reasoning (reason)
python3 scripts/perplexity_api.py reason "reasoning task"
# Web search (search)
python3 scripts/perplexity_api.py search "search query" [--max-results 10] [--country JP]Command Options
ask / research / reason
- First argument: question, research topic, or reasoning task
- : Remove
--strip-thinkingtags to save context tokens (research/reason only)<think>...</think>
search
- First argument: search query
- : Maximum number of results to return (1-20, default: 10)
--max-results - : Maximum tokens per page (256-2048, default: 1024)
--max-tokens-per-page - : ISO code for regional results (e.g., JP, US, GB)
--country
Workflow
Standard Search Flow
-
Analyze the user's question and select the appropriate tool
- Simple questions →
ask - Deep research →
research - Complex analysis →
reason - Information gathering →
search
- Simple questions →
-
Execute the script to call the API
-
Present results to the user, citing sources when available
Tool Selection Guidelines
| Use Case | Tool | Description |
|---|---|---|
| Current weather, news | ask | When quick answers are needed |
| Technical topic research | research | When comprehensive analysis is needed |
| Complex problem analysis | reason | When logical reasoning is needed |
| Collecting sources | search | When URLs or snippets are needed |
API Details
For detailed API specifications, see .
references/api_reference.mdTroubleshooting
- API Key Error: Verify the environment variable
PERPLEXITY_API_KEY - Timeout: Increase (default: 300000ms)
PERPLEXITY_TIMEOUT_MS - Proxy Issues: Set or
PERPLEXITY_PROXYHTTPS_PROXY