perplexity_search
Search the web, academic papers, or SEC filings using Perplexity Sonar models. Filter results by recency, domain, or date range for focused answers with citations.
Instructions
General web search via Perplexity Sonar (default model: sonar-pro).
Returns JSON with answer, citations, and optional search_results/usage.
When to use optional filters:
- search_recency_filter: current events / "latest" questions (hour|day|week|month|year).
- search_after/before_date_filter: absolute windows as MM/DD/YYYY; prefer over recency when exact.
- search_domain_filter: trusted sources (allowlist) or exclude noise (denylist with '-'); one mode only.
- search_mode: 'academic' for papers, 'sec' for SEC filings; omit for general web.
- Leave filters unset for broad evergreen queries.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Sonar model id: sonar (fast), sonar-pro (default search quality), sonar-deep-research (exhaustive synthesis), or sonar-reasoning-pro. Leave the tool default unless you need a different speed/depth tradeoff. | sonar-pro |
| query | Yes | Natural-language search or research question. Non-empty; max 4000 characters. | |
| max_tokens | No | Maximum completion tokens. Omit to use the API default; set only when you need a shorter or longer answer budget. | |
| search_mode | No | Search corpus: 'web' (general web, default), 'academic' (scholarly papers), or 'sec' (SEC filings). Set academic for literature reviews; sec for company filings; omit or web for general questions. | |
| temperature | No | Sampling temperature (0-2). Lower values (default 0.2) keep answers focused and factual; raise only when more varied phrasing is wanted. | |
| search_domain_filter | No | Limit or exclude domains/URLs (max 20). Allowlist: ['nature.com', 'nih.gov']. Denylist: ['-reddit.com', '-pinterest.com']. Use one mode only - do not mix allowlist and denylist entries in the same request. | |
| search_recency_filter | No | Restrict results to recent publications: hour, day, week, month, or year. Use for news, live events, or 'latest' questions. Omit for evergreen topics. Prefer absolute date filters when an exact window is known. | |
| search_after_date_filter | No | Only include results published after this date. Format: MM/DD/YYYY (e.g. 01/15/2024). Prefer over search_recency_filter for an absolute start. | |
| search_before_date_filter | No | Only include results published before this date. Format: MM/DD/YYYY (e.g. 12/31/2024). Prefer over search_recency_filter for an absolute end. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||