list_spaces
List Google Chat spaces (rooms and direct messages) the authenticated user has joined. Use this to discover space IDs needed for sending messages or reading messages.
Instructions
List Google Chat spaces (rooms and direct messages) the authenticated user is a member of.
Use this to discover the space_id (in spaces/<id> format) needed
for get_messages, send_message, and related Chat tools. The user
only sees spaces they have joined — this will not surface public
spaces in the workspace they haven't joined.
Requires OAuth scope:
https://www.googleapis.com/auth/chat.spaces.readonly (read-only).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_google_email | Yes | The user's Google email address. Required. | |
| page_size | No | Maximum number of spaces to return in one call. Defaults to 100; Google's hard cap is 1000. No pagination token is exposed by this tool — request a larger page_size if a user is in more than 100 spaces. | |
| space_type | No | Filter by space type. One of: - `"all"` (default): both rooms and direct messages - `"room"`: multi-member named spaces (`SPACE`) - `"dm"`: 1:1 or group direct messages (`DIRECT_MESSAGE`) Any other value is treated as `"all"`. | all |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |