Send a message
messages_sendSends the message shown by messages_preview to the one dealership on one row of a request. It reaches a real dealership and cannot be undone. It takes the previewToken that messages_preview returned for the same text, the same row and the same idempotencyKey. A call repeated with the same idempotencyKey returns the first answer and sends no second message.
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": {
"dealSetId": "<dealSetId>",
"rowKey": "<rowKey>",
"text": "<text>",
"previewToken": "<previewToken>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "messages_send"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The message text, as the buyer wants it said to the dealership. | |
| askId | No | Optional. The `askId` of the dealership's question this message answers, from a message in `messages_list` that carries one. Leave it out if the message answers no question. The preview and the send take the same `askId`. | |
| intent | No | Practice requests only. Marks this message as asking the dealership for a lower price, when the buyer asked for one. | |
| rowKey | Yes | ||
| dealSetId | Yes | The id of the request, from requests_list. | |
| previewToken | Yes | The previewToken that messages_preview returned for this exact text, this row and this idempotencyKey. Valid for 15 minutes. | |
| idempotencyKey | Yes | A key made up for this one message. The preview and the send take the same key; sending the same key again returns the first answer. |