send_chat_message
Send a message in AccountHub chat (one-to-one chats and group chats; a group chat is a shared project) — use this whenever the user says 'send X to <person/group> in AccountHub chat' / 「AccountHub のチャットで〇〇さんに送って」. NOT Slack, Gmail or Chatwork. Before calling, show the user the recipient and the exact text and get their explicit OK — they have not seen text you composed. Address it by to (a person's name or email among your chat contacts and existing chats, or a group chat's name) or by chat_id. If the name matches several chats or none, NOTHING is sent: the result has status 'needs_choice' / 'not_found' with candidates — ask the user which one and call again with that chat_id. It posts exactly like typing in the AccountHub chat, and the recipients get the same notifications. To send files, stage them with upload_attachment and pass attachment_ids (and/or attachment_urls); the message arrives once every file is stored. Not idempotent: a successful call posts once; an identical text sent to the same chat within 10 minutes is refused as 'duplicate_suspected' unless allow_duplicate is true. Trial users only.
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>"
},
"name": "send_chat_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Who to send to: a person's name (e.g. '佐藤さん' / 'Sato'), their email, or a group chat's name. Use this OR chat_id. | |
| text | Yes | The exact message text the user confirmed. Sent as-is (first line + the rest), like typing it in the AccountHub chat. | |
| chat_id | No | An exact chat id from list_unread_chats / read_chat / a previous candidates list. Use this OR to. | |
| chat_type | No | Narrow `to` to one-to-one chats ('direct') or group chats ('group') when a person and a group share a name. | |
| attachment_ids | No | upload_id values from upload_attachment to send as photos / videos / files in this message (max 10; each staged upload is at most 5 MB). With attachments, text may be empty. | |
| allow_duplicate | No | Only when the user explicitly wants to send the same text again within 10 minutes. Default false: an identical recent message is not re-sent. | |
| attachment_urls | No | Public http(s) URLs fetched at send time and sent as attachments (each at most 25 MB; unsafe addresses are refused). Executables cannot be sent. | |
| reply_to_item_id | No | Optional: item_id of a message in the same chat to reply to (from read_chat). |