perplexity_chat_completion
Retrieve web-grounded answers with citations by running a search-augmented chat completion.
Instructions
Run a search-augmented chat completion with Perplexity AI. Returns grounded answers with citations from the web.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "perplexity_chat_completion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model (default: sonar). Options: sonar, sonar-pro, sonar-reasoning | |
| prompt | No | User message (alternative to messages) | |
| api_key | No | Perplexity API key | |
| messages | No | JSON array of {role, content} messages | |
| max_tokens | No | ||
| temperature | No | ||
| system_prompt | No | ||
| return_citations | No | Include citation URLs in response (default true) | |
| search_domain_filter | No | JSON array of domains to restrict search to | |
| search_recency_filter | No | Limit sources by time: month, week, day, hour | |
| return_related_questions | No |