Chat with agent
chat_with_agentSend a single text message to a voice agent and receive its reply. Test prompts without placing a phone call.
Instructions
Send one text message to an agent and return its reply. Use it to test a prompt without placing a phone call.
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": {
"agent_id": "<agent_id>",
"message": "<message>"
},
"name": "chat_with_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | What the caller says | |
| agent_id | Yes | Agent id |