send_message_as_bot
Send messages as a bot to any chat. Supports text, post, interactive types and includes reliable @-mentions by using inline <at> tags.
Instructions
[Official API] Send a message as the bot to any chat. Supports text, post, interactive, etc. This is the reliable path for @-mentions: include <at user_id="ou_xxx">Name</at> inline in text content and Feishu resolves it to a real @-notification.
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>",
"msg_type": "<msg_type>",
"content": "<content>"
},
"name": "send_message_as_bot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | Target chat_id (oc_xxx) or open_id | |
| msg_type | Yes | Message type: text, post, image, interactive, etc. | |
| content | Yes | Message content (string or object, auto-serialized). Plain text: {"text":"hello"}. Text with @-mention: {"text":"<at user_id=\"ou_xxx\">Alice</at> hi"} — the inline tag becomes a real @-notification. |