Skip to main content
Server path: /embedded-perplexity | Type: Embedded | PCID required: No Perform web research using Perplexity Sonar models with real-time search capabilities, citations, and domain filtering.

Tools

ToolDescription
embedded-perplexity_researchPerform web research

embedded-perplexity_research

Perform web research using Perplexity Sonar models. Returns results with citations, images, and related questions. Supports domain filtering, recency filtering, and structured output. Parameters:
ParameterTypeRequiredDescription
modelenumNoModel to use: sonar, sonar-pro, sonar-reasoning, sonar-reasoning-pro. Default sonar
systemPromptstringNoSystem prompt to guide model behavior. Default Follow the user's instructions.
userPromptstringYesUser prompt or research question
fileUrlsstring[]NoURLs of files to analyze. Supported formats: .pdf, .docx, .xlsx, .pptx, .csv. Images are not supported
max_tokensnumberNoMaximum number of tokens in the response. Default 1000
temperaturenumberNoSampling temperature between 0 and 1. Default 0.7
top_pnumberNoNucleus sampling parameter between 0 and 1. Default 0.9
search_domain_filterstring[]NoUp to 10 domains to restrict search. Prefix with - to exclude a domain
return_imagesbooleanNoInclude images in the response. Default false
return_related_questionsbooleanNoInclude related questions in the response. Default false
search_recency_filterenumNoFilter results by recency: hour, day, week, month, year
top_knumberNoNumber of search results to consider. Default 3
presence_penaltynumberNoPresence penalty between 0 and 1. Default 0
frequency_penaltynumberNoFrequency penalty between 0 and 1. Default 0
web_search_optionsobjectNoWeb search configuration. Contains search_context_size (low, medium, high)
response_formatobjectNoStructured output format. Contains type (json_schema or regex) and optional json_schema with schema
Response fields:
FieldTypeDescription
outputstring or objectResearch results or structured output
citationsstring[]URLs of sources cited in the response
imagesarrayImages related to the research. Each contains url and description
related_questionsstring[]Suggested follow-up questions
metadataobjectResponse metadata
metadata.modelstringModel used for research
metadata.usageobjectToken usage statistics
metadata.usage.promptTokensnumberNumber of input tokens
metadata.usage.completionTokensnumberNumber of output tokens
metadata.usage.totalTokensnumberTotal tokens used
Available models:
ModelDescription
sonarStandard web research model (default)
sonar-proEnhanced web research with deeper analysis
sonar-reasoningResearch with step-by-step reasoning
sonar-reasoning-proAdvanced research with deep reasoning