ask_perplexity
Send a prompt to Perplexity's AI to search the web and get answers with citations for research, current events, and comparisons.
Instructions
Send a prompt to Perplexity and return the response.
Sonar models have internet access and can perform searches.
Use this for: research, current events, comparisons, finding information online.
Examples of good prompts:
- "What are the latest developments in quantum computing in 2025?"
- "Compare Python vs Rust for web development"
- "Explain the recent changes in EU privacy laws"
- "Find the best practices for React Server Components"
If the user wants to execute or learn complex tasks, use the reasoning model (sonar-reasoning)
If the user wants development work requiring real-time documentation lookup, research-intensive coding, use the reasoning model (sonar-reasoning).
But by default, use the research model (sonar).
Args:
prompt: The prompt/question to send
model: Sonar model (sonar, sonar-pro, sonar-deep-research,
sonar-reasoning, sonar-reasoning-pro)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| model | No | sonar |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |