Update a message
update_messageReplace the text of an existing Google Chat message, preserving its thread. Correct or revise messages you sent; only your own messages can be edited and will show an Edited marker.
Instructions
Replaces the text of an existing message (updateMask=text; the previous text is overwritten, not appended). With user authentication only the authenticated user's OWN messages can be edited — editing someone else's returns PERMISSION_DENIED, a Chat rule, not a missing scope. The message keeps its name and thread; lastUpdateTime is set and clients show an Edited marker. Updating cards or accessory widgets needs app auth via raw_request.
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": {
"message": "<message>",
"text": "<text>"
},
"name": "update_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The new message text (replaces the old text entirely). | |
| message | Yes | The full message name from list_messages/send_message, e.g. "spaces/AAA/messages/BBB.CCC". |