Написать в личный чат
send_messageWrite in the person's private chat (room chat_id) on their behalf, marked as sent via an AI agent. Sends only after their yes to this exact text: the first call returns details.confirm, the repeat with it sends.
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": {
"text": "<text>",
"id": "<id>",
"request_key": "<request_key>"
},
"name": "send_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Private chat_id room:… from list_chats or open_contact contact.chat_id | |
| text | Yes | Message on the person's behalf, 1-2000 chars, not starting with / | |
| confirm | No | details.confirm of the first call's answer; only after their yes to this exact text | |
| request_key | Yes | Idempotency key: reuse it on retry, new per action |