Ask Perplexity
perplexity_askAnswer questions using web-grounded AI to get factual responses with numbered citations. Filter results by recency, domain, or search context size for quick Q&A, summaries, and explanations.
Instructions
Answer a question using web-grounded AI (Sonar Pro model). Best for: quick factual questions, summaries, explanations, and general Q&A. Returns a text response with numbered citations. Fastest and cheapest option. Supports filtering by recency (hour/day/week/month/year), domain restrictions, and search context size. For in-depth multi-source research, use perplexity_research instead. For step-by-step reasoning and analysis, use perplexity_reason instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| messages | Yes | Array of conversation messages | |
| search_recency_filter | No | Filter search results by recency. Use 'hour' for very recent news, 'day' for today's updates, 'week' for this week, etc. | |
| search_domain_filter | No | Restrict search results to specific domains (e.g., ['wikipedia.org', 'arxiv.org']). Use '-' prefix for exclusion (e.g., ['-reddit.com']). | |
| search_context_size | No | Controls how much web context is retrieved. 'low' (default) is fastest, 'high' provides more comprehensive results. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| response | Yes | AI-generated text response with numbered citation references |