perplexity_chat
Generate chat completions using Perplexity AI. Send messages with system, user, or assistant roles and control response creativity with temperature.
Instructions
Generate a chat completion using Perplexity AI
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"messages": "<messages>"
},
"name": "perplexity_chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | The model to use for completion | |
| messages | Yes | Array of messages in the conversation | |
| temperature | No | Sampling temperature (0-2) |