Send a Google Chat message
send_chat_messageSends a message as the user in a Google Chat space, group chat or direct message (space from list_chat_spaces or the other Google Chat tools). In a space organized in threads, the message starts a new thread; reply_chat_message answers in an existing one. The message is sent immediately and cannot be unsent from Fezola (Google Chat has no drafts). accountId is required when several Google Chat accounts are connected. Returns the sent message with its space, thread and link. Fails with CHAT_WRITE_NOT_GRANTED when the account was connected read-only (the user reconnects it; get_connect_link type google_chat) and CHAT_SEND_DISABLED when the user turned sending off for that account in Fezola. With attachments, files are uploaded before the message; if one is refused (ATTACHMENT_UPLOAD_FAILED, ATTACHMENT_TOO_LARGE, ATTACHMENT_TYPE_BLOCKED), nothing is sent.
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": {
"space": "<space>"
},
"name": "send_chat_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Message text, sent as written. Google Chat formatting: *bold*, _italic_, ~strikethrough~, `code`. Optional when attachments are given. | |
| space | Yes | Space, group chat or DM: "spaces/AAAA", as returned by the other Google Chat tools. | |
| accountId | No | Google Chat account. Optional when only one is connected. | |
| requestId | No | Optional idempotency key. Calling again with the same requestId, text and files returns the message already sent (alreadySent: true) instead of sending it twice. Without it, the same text and files sent to the same place within 10 minutes also count as one message and return alreadySent: true; a new requestId always sends a new message. | |
| attachments | No | Files to send with the message (10 max, 50 MB in total): a file you provide ({ filename, mimeType, base64 }, 700 KB each, the whole call under 1 MB) or an attachment of an email in a connected mailbox ({ fromEmail: { accountId, uid, folder, index } }; the whole email must be 15 MB or less, about 11 MB of attachments; Fezola reads it from the mailbox). Executable types blocked by Google Chat (exe, bat, js, jar, msi...) are refused. Files are uploaded first; if one fails, no message is sent. |