chat_upload_attachment
Upload a file and send it as an attachment to a Google Chat space, with optional accompanying text.
Instructions
Upload a file and send it as an attachment to a Google Chat space, with optional accompanying text.
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": {
"email": "<email>",
"spaceName": "<spaceName>",
"filename": "<filename>",
"mimeType": "<mimeType>",
"data": "<data>"
},
"name": "chat_upload_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Base64-encoded file content. | |
| text | No | Optional message text to send alongside the attachment. | |
| Yes | The authenticated Google account to send from. | ||
| filename | Yes | The name for the file as it will appear in the message. | |
| mimeType | Yes | MIME type of the file (e.g. 'application/pdf', 'image/png'). | |
| spaceName | Yes | The space resource name (e.g. 'spaces/XXXXXX'). Get this from chat_list_spaces. | |
| threadName | No | Thread resource name to reply within (optional), from chat_list_messages threadName field. |