send_message
Send a message to a chat by providing chat ID and text. Optionally reply to a specific post with quoted text.
Instructions
Send a message to a chat.
Args: chat_id: ID of the chat to send message to text: Message text to send reply_to_message_id: Post number to reply to (optional) quote_text: Text to quote from the replied message (optional, only used with reply_to_message_id)
Returns: ToolResponse with SendMessagePayload containing sent message details including message ID and timestamp
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": {
"chat_id": "<chat_id>",
"text": "<text>"
},
"name": "send_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| chat_id | Yes | ||
| quote_text | No | ||
| reply_to_message_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Error message if operation failed | |
| message | Yes | Human-readable summary of the result | |
| payload | No | The actual response data | |
| success | Yes | Whether the operation was successful |