get_messages
List messages in a Google Chat space with sender names resolved, to read recent room or DM history.
Instructions
List messages in a Google Chat space with sender names resolved.
Use this to read a room/DM's recent messages. For text search across spaces use search_messages. For sending messages use send_message. For attachment downloads use download_chat_attachment. Senders are resolved to display names via the People API (both chat.read and contacts.readonly OAuth scopes required).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_google_email | Yes | The user's Google email address (authenticated account). | |
| space_id | Yes | Space resource name from list_spaces, formatted as "spaces/<id>". | |
| page_size | No | Max messages returned. Default 50. | |
| order_by | No | "createTime desc" (default, newest first) or "createTime" (oldest first). | createTime desc |
| message_filter | No | Chat API filter expression. Supports createTime and thread.name, e.g. 'createTime > "2026-03-18T00:00:00Z"' or 'thread.name = spaces/X/threads/Y'. Full-text search is NOT supported here — use search_messages. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |