perplexity_chat_completion
Run search-augmented chat completions using Perplexity AI to get grounded answers with web citations.
Instructions
Run a search-augmented chat completion with Perplexity AI. Returns grounded answers with citations from the web.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | Perplexity API key | |
| model | No | Model (default: sonar). Options: sonar, sonar-pro, sonar-reasoning | |
| prompt | No | User message (alternative to messages) | |
| system_prompt | No | ||
| messages | No | JSON array of {role, content} messages | |
| max_tokens | No | ||
| temperature | No | ||
| search_recency_filter | No | Limit sources by time: month, week, day, hour | |
| search_domain_filter | No | JSON array of domains to restrict search to | |
| return_citations | No | Include citation URLs in response (default true) | |
| return_related_questions | No |