The Google Workspace (DWD) connector lets your AI agent work with Google Workspace (DWD). You connect it once with a service account, and Scalekit authenticates every call, so your agent never handles credentials. It comes with 100 tools.
- Tools
- 100
- What they doRead · write · destructive
- 51 · 37 · 1251 read37 write12 destructive
- Users sign in with
- Service account
What you can do
- Read and search emails: fetch messages, threads, and attachments from any Gmail label or inbox
- Send and manage emails: compose messages, manage drafts, and modify labels on Gmail messages
- Manage Google Drive files: share, move, copy, and query activity on files and folders in Google Drive
- Access Google Calendar: read, create, and manage calendar events across a user’s calendars
- Manage Google Vault: list matters and manage legal holds in Google Vault
- Administer user settings: update vacation auto-reply settings and other Gmail account configurations
Setup
Install the SDK
Terminal window npm install @scalekit-sdk/node dotenvTerminal window pip install scalekit-sdk-python python-dotenvSet your credentials
Add your Scalekit credentials to your
.envfile. Find values in app.scalekit.com > Developers > API Credentials..env SCALEKIT_ENVIRONMENT_URL=<your-environment-url>SCALEKIT_CLIENT_ID=<your-client-id>SCALEKIT_CLIENT_SECRET=<your-client-secret>Create the Google Workspace (DWD) connection
In AgentKit > Connections, create a Google Workspace (DWD) connection. The name you give it is the
connection_nameyour code passes. See Configure connections.Console steps with screenshots
Register your Scalekit environment with the Google Workspace (DWD) connector so Scalekit can act on behalf of any user in your Google Workspace domain. DWD uses a service account — no per-user login flows are required.
-
Create a connection in Scalekit
-
In Scalekit dashboard, go to AgentKit > Connections > Create Connection. Find Google Workspace (DWD) and click Create.
-
Under Scopes, add each Google API scope your agent needs. Enter the full scope URI, for example:
https://www.googleapis.com/auth/gmail.readonlyhttps://www.googleapis.com/auth/calendarhttps://www.googleapis.com/auth/drive
See the Google OAuth 2.0 Scopes reference for the full list.
-
-
Create a GCP service account
- Go to Google Cloud Console → IAM & Admin → Service Accounts.
- Click + Create Service Account, enter a name and description, and click Create and Continue.
- Skip the optional role and user access steps and click Done.
-
Download the service account JSON key
- In Google Cloud Console, go to IAM & Admin → Service Accounts and click your service account.
- Go to the Keys tab → Add Key → Create new key.
- Select JSON and click Create. The key file downloads automatically.
-
Add the service account JSON in Scalekit
- In Scalekit dashboard, go to AgentKit > Connections and open the connection you created in step 1.
- Paste the full contents of the downloaded JSON key file into the Service Account JSON field. Treat this JSON key as a secret credential — restrict access to the connection settings and rotate or revoke the key immediately if it is exposed.
- Click Save.
Authorize the service account in Google Admin
The admin of the Google Workspace organization you want to connect to must complete these steps to authorize your service account.
-
Open API controls in Google Admin
- Sign in to Google Admin console as a super admin.
- Go to Security → Access and data control → API controls.
- Click Manage Domain Wide Delegation → Add new.
-
Authorize the service account
- In Client ID, enter the Unique ID of the service account created during setup (visible in GCP Console → IAM & Admin → Service Accounts → click the service account → Details tab).
- In OAuth scopes, enter the scopes comma-separated — these must match exactly what was configured in the Scalekit connection. For example:
https://www.googleapis.com/auth/gmail.readonly, https://www.googleapis.com/auth/calendar, https://www.googleapis.com/auth/drive
- Click Authorize.
You can now impersonate any user in that workspace with your service account via Scalekit connected accounts.
-
Authentication
Section titled “Authentication”This connector uses Service Account with Domain-Wide Delegation (DWD). You create a GCP service account, grant it domain-wide delegation in Google Admin, and provide Scalekit with the service account JSON key. Scalekit then impersonates any user in your Google Workspace domain on demand — no per-user OAuth redirects required.
Create a connected account
Section titled “Create a connected account”Before executing tools, create a connected account for each Google Workspace user you want to impersonate. Pass the user’s email as subject — this tells Scalekit which Workspace user the service account should act as. The identifier is your application’s ID for that user.
response = scalekit_client.actions.create_connected_account( # connection_name: the name of the connection you created in the setup step above connection_name='googledwd', identifier='user_123', authorization_details={ "google_dwd": { # subject: the Google Workspace user you want to impersonate "subject": "alice@yourcompany.com", } },)print(response.connected_account.id)print(response.connected_account.status)Execute tools
Section titled “Execute tools”Execute a tool
Use the identifier you set when creating the connected account. Scalekit resolves the impersonated Workspace user from that mapping.
response = scalekit_client.actions.execute_tool( # connection_name: the name of the connection you created in the setup step above connection_name='googledwd', identifier='user_123', tool_name='googledwd_fetch_mails', tool_input={ "max_results": 5, "format": "metadata", "include_spam_trash": False, },)print(response)Tools
Pass the exact name toexecute_toolgoogledwd_fetch_mailsFetch emails from a connected Gmail account using search filters.Read-onlyFetch Emails from Gmail
Fetch emails from a connected Gmail account using search filters. Uses DWD service account credentials.
Inputs
formatstring- Format of the returned message.one of
minimalfullrawmetadatadefaultmetadata include_spam_trashboolean- Whether to fetch emails from spam and trash foldersdefault
false label_idsarray- Gmail label IDs to filter messages
max_resultsinteger- Maximum number of emails to fetch
page_tokenstring- Page token for pagination
querystring- Search query string using Gmail's search syntax (e.g., 'is:unread from:user@example.com')
Also accepts
schema_versionandtool_versionto pin a version.googledwd_get_admin_groupRetrieve details of a specific Google Workspace group by its email address or unique group ID using the Admin Directory API.Read-onlyGet Admin Group
Retrieve details of a specific Google Workspace group by its email address or unique group ID using the Admin Directory API. Uses DWD service account credentials.
Inputs
group_keystringrequired- Group email address or unique group ID to retrieve (e.g., 'engineering@example.com' or a numeric ID).
Also accepts
schema_versionandtool_versionto pin a version.googledwd_get_admin_userRetrieve details of a specific Google Workspace user by their primary email address or unique user ID using the Admin Directory API.Read-onlyGet Admin User
Retrieve details of a specific Google Workspace user by their primary email address or unique user ID using the Admin Directory API. Uses DWD service account credentials.
Inputs
user_keystringrequired- Primary email address or unique user ID of the user to retrieve (e.g., 'john@example.com' or '123456789').
Also accepts
schema_versionandtool_versionto pin a version.googledwd_get_alertGet details of a specific security alert from Google Workspace Alert Center.Read-onlyGet Alert
Get details of a specific security alert from Google Workspace Alert Center. Uses DWD service account credentials.
Inputs
alert_idstringrequired- The unique identifier of the alert to retrieve. Example: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890'
Also accepts
schema_versionandtool_versionto pin a version.googledwd_get_alert_metadataGet metadata for a specific alert including acknowledgement status and assignee.Read-onlyGet Alert Metadata
Get metadata for a specific alert including acknowledgement status and assignee. Uses DWD service account credentials.
Inputs
alert_idstringrequired- The unique identifier of the alert whose metadata to retrieve. Example: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890'
Also accepts
schema_versionandtool_versionto pin a version.googledwd_get_attachment_by_idRetrieve a specific attachment from a Gmail message using the message ID and attachment ID.Read-onlyFetch Attachment by Gmail ID
Retrieve a specific attachment from a Gmail message using the message ID and attachment ID. Uses DWD service account credentials.
Inputs
attachment_idstringrequired- Unique Gmail attachment ID
message_idstringrequired- Unique Gmail message ID that contains the attachment
file_namestring- Preferred filename to use when saving/returning the attachment
Also accepts
schema_versionandtool_versionto pin a version.googledwd_get_chat_spaceRetrieve details of a specific Google Chat space (room or direct message) by its resource name (e.g., 'spaces/AAAA').Read-onlyGet Chat Space
Retrieve details of a specific Google Chat space (room or direct message) by its resource name (e.g., 'spaces/AAAA'). Uses DWD service account credentials.
Inputs
space_namestringrequired- Resource name of the Chat space to retrieve (e.g., 'spaces/AAAABBBBCCCC').
Also accepts
schema_versionandtool_versionto pin a version.googledwd_get_contactsFetch a list of contacts from the connected Gmail account.Read-onlyFetch Gmail Contacts
Fetch a list of contacts from the connected Gmail account. Supports pagination and field filtering. Uses DWD service account credentials.
Inputs
max_resultsinteger- Maximum number of contacts to fetch
page_tokenstring- Token to retrieve the next page of results
person_fieldsarray- Fields to include for each person
Also accepts
schema_versionandtool_versionto pin a version.googledwd_get_event_by_idRetrieve a specific calendar event by its ID using optional filtering and list parameters.Read-onlyGet Calendar Event by ID
Retrieve a specific calendar event by its ID using optional filtering and list parameters. Uses DWD service account credentials.
Inputs
event_idstringrequired- The unique identifier of the calendar event to fetch
calendar_idstring- The calendar ID to search indefault
primary event_typesarray- Filter by Google event types
querystring- Free text search query
show_deletedboolean- Include deleted events in resultsdefault
false single_eventsboolean- Expand recurring events into instancesdefault
true time_maxstring- Upper bound for event start time (RFC3339)
time_minstring- Lower bound for event start time (RFC3339)
updated_minstring- Filter events updated after this time (RFC3339)
Also accepts
schema_versionandtool_versionto pin a version.googledwd_get_file_metadataRetrieve metadata for a specific file in Google Drive by its file ID.Read-onlyGet File Metadata
Retrieve metadata for a specific file in Google Drive by its file ID. Returns name, MIME type, size, creation time, and more.
Inputs
file_idstringrequired- The ID of the file to retrieve metadata for
fieldsstring- Fields to include in the response
supports_all_drivesboolean- Support shared drivesdefault
false
Also accepts
schema_versionandtool_versionto pin a version.googledwd_get_formGet the structure and metadata of a Google Form including its title, description, and all questions.Read-onlyGet Google Form
Get the structure and metadata of a Google Form including its title, description, and all questions.
Inputs
form_idstringrequired- The ID of the Google Form to retrieve
googledwd_get_group_memberRetrieve a single member of a Google Workspace group using the Admin Directory API.Read-onlyGet Group Member
Retrieve a single member of a Google Workspace group using the Admin Directory API. Uses DWD service account credentials.
Inputs
group_keystringrequired- Email address or unique ID of the group.
member_keystringrequired- Email address or unique ID of the member to retrieve.
googledwd_get_group_settingsGet the settings for a Google Workspace group including posting permissions, membership settings, and moderation.Read-onlyGet Group Settings
Get the settings for a Google Workspace group including posting permissions, membership settings, and moderation. Uses DWD service account credentials.
Inputs
group_emailstringrequired- The email address of the Google Workspace group whose settings to retrieve. Example: 'engineering@example.com'
Also accepts
schema_versionandtool_versionto pin a version.googledwd_get_keep_noteRetrieve a single Google Keep note by its resource name (e.g., 'notes/abc123'), including its title, body, and metadata.Read-onlyGet Keep Note
Retrieve a single Google Keep note by its resource name (e.g., 'notes/abc123'), including its title, body, and metadata. Uses DWD service account credentials.
Inputs
note_namestringrequired- Resource name of the Keep note to retrieve (e.g., 'notes/abc123').
Also accepts
schema_versionandtool_versionto pin a version.googledwd_get_meet_spaceRetrieve details of a Google Meet meeting space by its resource name (e.g., 'spaces/abc123'), including its meeting URI and configuration.Read-onlyGet Meet Space
Retrieve details of a Google Meet meeting space by its resource name (e.g., 'spaces/abc123'), including its meeting URI and configuration. Uses DWD service account credentials.
Inputs
space_namestringrequired- Resource name of the Meet space to retrieve (e.g., 'spaces/abc123').
Also accepts
schema_versionandtool_versionto pin a version.googledwd_get_message_by_idRetrieve a specific Gmail message using its message ID.Read-onlyFetch Message by Gmail ID
Retrieve a specific Gmail message using its message ID. Optionally control the format of the returned data. Uses DWD service account credentials.
Inputs
message_idstringrequired- Unique Gmail message ID
formatstring- Format of the returned message.one of
minimalfullrawmetadata
Also accepts
schema_versionandtool_versionto pin a version.googledwd_get_responseGet a single response submitted to a Google Form by its response ID.Read-onlyGet Google Form Response
Get a single response submitted to a Google Form by its response ID. Returns the respondent's answers for all questions.
Inputs
form_idstringrequired- The ID of the Google Form
response_idstringrequired- The ID of the specific response to retrieve
googledwd_get_send_asGet send-as alias settings including email signature for the authenticated Gmail account.Read-onlyGet Send-As Alias
Get send-as alias settings including email signature for the authenticated Gmail account. Use the user's own email address to retrieve the default send-as settings and signature. Uses DWD service account credentials.
Inputs
send_as_emailstringrequired- The send-as alias email address to retrieve settings for. Use the user's own email address (e.g., 'user@example.com') to get their default signature and send-as settings.
Also accepts
schema_versionandtool_versionto pin a version.googledwd_get_thread_by_idRetrieve a specific Gmail thread by thread ID.Read-onlyGet Gmail Thread by ID
Retrieve a specific Gmail thread by thread ID. Optionally control message format and metadata headers. Uses service account with Domain-Wide Delegation.
Inputs
thread_idstringrequired- Unique Gmail thread ID
formatstring- Format of messages in the returned thread.one of
fullmetadataminimaldefaultfull metadata_headersarray- Specific email headers to include when format is metadata
Also accepts
schema_versionandtool_versionto pin a version.googledwd_get_userinfoRetrieve the profile information of the impersonated Google Workspace user, including their email address, name, and profile picture.Read-onlyGet User Info
Retrieve the profile information of the impersonated Google Workspace user, including their email address, name, and profile picture.
Inputs
This tool takes no inputs.
Also accepts
schema_versionandtool_versionto pin a version.googledwd_get_vacation_settingsGet the vacation auto-reply settings for the authenticated Gmail account.Read-onlyGet Vacation Settings
Get the vacation auto-reply settings for the authenticated Gmail account. Uses DWD service account credentials.
Inputs
This tool takes no inputs.
Also accepts
schema_versionandtool_versionto pin a version.googledwd_get_valuesReturns only the cell values from a specific range in a Google Sheet — no metadata, no formatting, just the data.Read-onlyGet Sheet Values
Returns only the cell values from a specific range in a Google Sheet — no metadata, no formatting, just the data. For full spreadsheet metadata and formatting, use googledwd_read_spreadsheet instead.
Inputs
rangestringrequired- Cell range to read in A1 notation
spreadsheet_idstringrequired- The ID of the Google Sheet
major_dimensionstring- Whether values are returned by rows or columnsone of
ROWSCOLUMNSdefaultROWS value_render_optionstring- How values should be rendered in the responseone of
FORMATTED_VALUEUNFORMATTED_VALUEFORMULAdefaultFORMATTED_VALUE
Also accepts
schema_versionandtool_versionto pin a version.googledwd_get_vault_matterRetrieve details of a specific Google Vault matter by its matter ID.Read-onlyGet Vault Matter
Retrieve details of a specific Google Vault matter by its matter ID. Optionally specify the view level (BASIC or FULL) to control how much detail is returned. Uses DWD service account credentials.
Inputs
matter_idstringrequired- Unique ID of the Vault matter to retrieve (e.g., '0123456789abcdef').
viewstring- Level of detail to return. 'BASIC' returns metadata only; 'FULL' includes collaborators and other details.one of
BASICFULL
Also accepts
schema_versionandtool_versionto pin a version.googledwd_list_admin_activitiesList audit log activity events for a specific user and application in Google Workspace using the Admin Reports API.Read-onlyList Admin Activities
List audit log activity events for a specific user and application in Google Workspace using the Admin Reports API. Use 'all' for user_key to retrieve activities for all users. Uses DWD service account credentials.
Inputs
application_namestringrequired- Name of the application whose activity records to retrieve. One of: 'admin', 'calendar', 'drive', 'gcp', 'groups', 'login', 'meet', 'mobile', 'rules', 'saml', 'token', 'user_accounts'.one of
admincalendardrivegcpgroupsloginmeetmobilerulessamltokenuser_accounts user_keystringrequired- User email address or unique user ID to retrieve activity for. Use 'all' to retrieve activities for all users.
end_timestring- End of the time range for activity records in RFC3339 format (e.g., '2024-01-31T23:59:59Z').
event_namestring- Filter by a specific event name within the application (e.g., 'LOGIN_SUCCESS' for the login application).
filtersstring- Comma-separated event parameter filters (e.g., 'IP_ADDRESS==1.2.3.4'). See Reports API docs for supported parameters.
max_resultsinteger- Maximum number of activity records to return per page (1–1000).
page_tokenstring- Token for the next page of results from a previous response.
start_timestring- Start of the time range for activity records in RFC3339 format (e.g., '2024-01-01T00:00:00Z').
Also accepts
schema_versionandtool_versionto pin a version.googledwd_list_admin_groupsList groups in a Google Workspace domain using the Admin Directory API.Read-onlyList Admin Groups
List groups in a Google Workspace domain using the Admin Directory API. Supports filtering by domain, query string, and user membership. Uses DWD service account credentials.
Inputs
customerstring- Customer ID or 'my_customer' for the authenticated account's domain (default: 'my_customer').default
my_customer domainstring- Domain name to filter groups (e.g., 'example.com').
max_resultsinteger- Maximum number of groups to return per page (1–200).
page_tokenstring- Token for the next page of results from a previous response.
querystring- Query string to filter groups (e.g., 'name:Engineering*').
user_keystring- Filter groups to only those that contain this user (email or user ID).
Also accepts
schema_versionandtool_versionto pin a version.googledwd_list_admin_usersList user accounts in a Google Workspace domain using the Admin Directory API.Read-onlyList Admin Users
List user accounts in a Google Workspace domain using the Admin Directory API. Supports filtering by domain, query string, ordering, and pagination. Uses DWD service account credentials.
Inputs
customerstring- Customer ID or 'my_customer' for the authenticated account's domain (default: 'my_customer').default
my_customer domainstring- Domain name to filter users (e.g., 'example.com'). Mutually exclusive with customer.
max_resultsinteger- Maximum number of users to return per page (1–500).
order_bystring- Field to sort users by. One of: 'email', 'familyName', 'givenName'.one of
emailfamilyNamegivenName page_tokenstring- Token for the next page of results from a previous response.
querystring- Query string to filter users (e.g., 'email:admin*', 'name:John').
show_deletedstring- If 'true', retrieves deleted users. Default is 'false'.
sort_orderstring- Sort direction for results. One of: 'ASCENDING', 'DESCENDING'.one of
ASCENDINGDESCENDING
Also accepts
schema_versionandtool_versionto pin a version.googledwd_list_alert_feedbackList all feedback entries for a specific security alert.Read-onlyList Alert Feedback
List all feedback entries for a specific security alert. Uses DWD service account credentials.
Inputs
alert_idstringrequired- The unique identifier of the alert whose feedback to list. Example: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890'
Also accepts
schema_versionandtool_versionto pin a version.googledwd_list_alertsList security alerts from Google Workspace Alert Center.Read-onlyList Alerts
List security alerts from Google Workspace Alert Center. Shows suspicious logins, DLP violations, and other security events. Uses DWD service account credentials.
Inputs
filterstring- Filter string to narrow alert results. Example: "type=\"Suspicious login\""
order_bystring- Sort order for results. Example: 'createTime desc'
page_sizeinteger- Maximum number of alerts to return per page. Max 100.
page_tokenstring- Token for the next page of results from a previous response.
Also accepts
schema_versionandtool_versionto pin a version.googledwd_list_calendarsList all accessible Google Calendar calendars for the authenticated user.Read-onlyList Calendars
List all accessible Google Calendar calendars for the authenticated user. Supports filters and pagination. Uses DWD service account credentials.
Inputs
max_resultsinteger- Maximum number of calendars to fetchdefault
10 min_access_rolestring- Minimum access role to include in resultsone of
freeBusyReaderreaderwriterowner page_tokenstring- Token to retrieve the next page of results
show_deletedboolean- Include deleted calendars in the listdefault
false show_hiddenboolean- Include calendars that are hidden from the calendar listdefault
false sync_tokenstring- Token to get updates since the last sync
Also accepts
schema_versionandtool_versionto pin a version.googledwd_list_chat_membersList members (human users and bots) in a Google Chat space.Read-onlyList Chat Members
List members (human users and bots) in a Google Chat space. Supports filtering and pagination, with optional inclusion of Google Groups and invited members. Uses DWD service account credentials.
Inputs
space_namestringrequired- Resource name of the Chat space to list members for (e.g., 'spaces/AAAABBBBCCCC').
filterstring- Query filter for members. Example: 'member.type = "HUMAN"'.
page_sizeinteger- Maximum number of members to return per page (1–1000).
page_tokenstring- Token for the next page of results from a previous response.
show_groupsboolean- If true, include Google Groups in the member list.
show_invitedboolean- If true, include invited (pending) members in the results.
Also accepts
schema_versionandtool_versionto pin a version.googledwd_list_chat_messagesList messages in a Google Chat space.Read-onlyList Chat Messages
List messages in a Google Chat space. Supports filtering, ordering, and pagination. Optionally include deleted messages. Uses DWD service account credentials.
Inputs
space_namestringrequired- Resource name of the Chat space to list messages from (e.g., 'spaces/AAAABBBBCCCC').
filterstring- Query filter for messages. Example: 'createTime > "2024-01-01T00:00:00Z"'.
order_bystring- Sort field and direction for results (e.g., 'createTime asc' or 'createTime desc').
page_sizeinteger- Maximum number of messages to return per page (1–1000).
page_tokenstring- Token for the next page of results from a previous response.
show_deletedboolean- If true, include deleted messages in the results.
Also accepts
schema_versionandtool_versionto pin a version.googledwd_list_chat_spacesList Google Chat spaces (rooms and direct messages) that the authenticated user or service account has access to.Read-onlyList Chat Spaces
List Google Chat spaces (rooms and direct messages) that the authenticated user or service account has access to. Supports filtering and pagination. Uses DWD service account credentials.
Inputs
filterstring- Query filter for spaces. Example: 'spaceType = "SPACE"' or 'spaceType = "GROUP_CHAT"'.
page_sizeinteger- Maximum number of spaces to return per page (1–1000).
page_tokenstring- Token for the next page of results from a previous response.
Also accepts
schema_versionandtool_versionto pin a version.googledwd_list_documentsList all Google Docs documents in the impersonated user's Drive.Read-onlyList Google Docs
List all Google Docs documents in the impersonated user's Drive. Optionally search by document name. Returns document IDs, names, and metadata with pagination support.
Inputs
order_bystring- Sort order for results. Examples: modifiedTime desc, name asc, createdTime desc
page_sizeinteger- Number of documents to return per page (max 1000, default 100)
page_tokenstring- Token for retrieving the next page of results. Use the nextPageToken from a previous response.
querystring- Drive search query to filter documents. Defaults to all Google Docs. To search by name, use: mimeType = 'application/vnd.google-apps.document' and trashed = false and name contains 'report'
googledwd_list_draftsList draft emails from a connected Gmail account.Read-onlyList Gmail Drafts
List draft emails from a connected Gmail account. Uses DWD service account credentials.
Inputs
max_resultsinteger- Maximum number of drafts to fetch
page_tokenstring- Page token for pagination
Also accepts
schema_versionandtool_versionto pin a version.googledwd_list_eventsList events from a connected Google Calendar account with filtering options.Read-onlyList Calendar Events
List events from a connected Google Calendar account with filtering options. Uses DWD service account credentials.
Inputs
calendar_idstring- Calendar ID to list events fromdefault
primary max_resultsinteger- Maximum number of events to fetchdefault
10 order_bystring- Order of events in the resultone of
startTimeupdateddefaultstartTime page_tokenstring- Page token for pagination
querystring- Free text search query
single_eventsboolean- Expand recurring events into single eventsdefault
true time_maxstring- Upper bound for event start time (RFC3339 timestamp)
time_minstring- Lower bound for event start time (RFC3339 timestamp)
Also accepts
schema_versionandtool_versionto pin a version.googledwd_list_filtersList all email filters for the authenticated Gmail account.Read-onlyList Email Filters
List all email filters for the authenticated Gmail account. Returns filter criteria and actions such as label assignment, forwarding, and archiving rules. Uses DWD service account credentials.
Inputs
This tool takes no inputs.
Also accepts
schema_versionandtool_versionto pin a version.googledwd_list_group_membersList the members of a Google Workspace group using the Admin Directory API.Read-onlyList Group Members
List the members of a Google Workspace group using the Admin Directory API. Supports filtering by role and pagination. Uses DWD service account credentials.
Inputs
group_keystringrequired- Group email address or unique group ID whose members to list (e.g., 'engineering@example.com').
include_derived_membershipboolean- If true, include members inherited from sub-groups or nested groups.
max_resultsinteger- Maximum number of members to return per page (1–200).
page_tokenstring- Token for the next page of results from a previous response.
rolesstring- Filter members by role. Comma-separated values from: 'OWNER', 'MANAGER', 'MEMBER'.
Also accepts
schema_versionandtool_versionto pin a version.googledwd_list_keep_notesList notes in Google Keep.Read-onlyList Keep Notes
List notes in Google Keep. Supports filtering (e.g., by trashed status) and pagination. Returns up to 100 notes per page. Uses DWD service account credentials.
Inputs
filterstring- Filter expression for notes. Example: 'trashed = false' or 'trashed = true'.
page_sizeinteger- Maximum number of notes to return per page (1–100).
page_tokenstring- Token for the next page of results from a previous response.
Also accepts
schema_versionandtool_versionto pin a version.googledwd_list_labelsList all Gmail labels (system labels like INBOX/UNREAD/STARRED and any user-created labels) for the impersonated mailbox, including each label's ID, name, type, and visibility settings.Read-onlyList Gmail Labels
List all Gmail labels (system labels like INBOX/UNREAD/STARRED and any user-created labels) for the impersonated mailbox, including each label's ID, name, type, and visibility settings. Modify Gmail Message Labels can apply label IDs to a message, but this is the only way to discover which label IDs exist. Uses DWD service account credentials.
Inputs
This tool takes no inputs.
googledwd_list_org_unitsList organizational units (OUs) in a Google Workspace customer account using the Admin Directory API.Read-onlyList Org Units
List organizational units (OUs) in a Google Workspace customer account using the Admin Directory API. Supports filtering by parent OU path and retrieval type. Uses DWD service account credentials.
Inputs
customer_idstring- Customer ID or 'my_customer' for the authenticated account's domain (default: 'my_customer').default
my_customer org_unit_pathstring- Full path of the parent organizational unit to list children of (e.g., '/Engineering').
typestring- Type of OUs to return. 'all' returns all OUs; 'children' returns only direct children of the specified org_unit_path.one of
allchildren
Also accepts
schema_versionandtool_versionto pin a version.googledwd_list_responsesList all responses submitted to a Google Form.Read-onlyList Google Form Responses
List all responses submitted to a Google Form. Returns response IDs, submission timestamps, and answer values for each respondent.
Inputs
form_idstringrequired- The ID of the Google Form to list responses for
filterstring- Filter responses by submission time. Format: timestamp > 2026-01-01T00:00:00Z
page_sizeinteger- Maximum number of responses to return (max 5000)
page_tokenstring- Token for retrieving the next page of results
googledwd_list_task_listsList all task lists for the authenticated user in Google Tasks.Read-onlyList Task Lists
List all task lists for the authenticated user in Google Tasks. Returns a paginated collection of task lists. Uses DWD service account credentials.
Inputs
max_resultsinteger- Maximum number of task lists to return. Accepted value is between 1 and 100.
page_tokenstring- Token specifying the page of results to return. Obtained from nextPageToken in a previous response.
Also accepts
schema_versionandtool_versionto pin a version.googledwd_list_tasksList all tasks in a specified Google Tasks task list.Read-onlyList Tasks
List all tasks in a specified Google Tasks task list. Supports filtering by completion status, deletion status, and due date range. Uses DWD service account credentials.
Inputs
task_list_idstringrequired- The ID of the task list to retrieve tasks from.
due_maxstring- Upper bound for a task's due date (RFC3339 datetime). Tasks due after this datetime are excluded.
due_minstring- Lower bound for a task's due date (RFC3339 datetime). Tasks due before this datetime are excluded.
max_resultsinteger- Maximum number of tasks to return. Accepted value is between 1 and 100.
page_tokenstring- Token specifying the page of results to return. Obtained from nextPageToken in a previous response.
show_completedboolean- Flag indicating whether completed tasks are returned. The default is true.default
true show_deletedboolean- Flag indicating whether deleted tasks are returned. The default is false.default
false show_hiddenboolean- Flag indicating whether hidden tasks are returned. The default is false.default
false
Also accepts
schema_versionandtool_versionto pin a version.googledwd_list_threadsList threads in a Gmail account using optional search and label filters.Read-onlyList Gmail Threads
List threads in a Gmail account using optional search and label filters. Uses service account with Domain-Wide Delegation.
Inputs
include_spam_trashboolean- Whether to include threads from Spam and Trashdefault
false label_idsarray- Gmail label IDs to filter threads (threads must match all labels)
max_resultsinteger- Maximum number of threads to return
page_tokenstring- Page token for pagination
querystring- Search query string using Gmail search syntax (for example, 'is:unread from:user@example.com')
Also accepts
schema_versionandtool_versionto pin a version.googledwd_list_vault_mattersList matters in Google Vault.Read-onlyList Vault Matters
List matters in Google Vault. Supports filtering by state (OPEN, CLOSED, DELETED) and specifying the view level (BASIC or FULL). Uses DWD service account credentials.
Inputs
page_sizeinteger- Maximum number of matters to return per page (1–100).
page_tokenstring- Token for the next page of results from a previous response.
statestring- Filter matters by state. One of: 'OPEN', 'CLOSED', 'DELETED'.one of
OPENCLOSEDDELETED viewstring- Level of detail to return. 'BASIC' returns metadata only; 'FULL' includes collaborators and other details.one of
BASICFULL
Also accepts
schema_versionandtool_versionto pin a version.googledwd_read_documentRead the complete content and structure of a Google Doc including text, formatting, tables, and metadata.Read-onlyRead Google Doc
Read the complete content and structure of a Google Doc including text, formatting, tables, and metadata.
Inputs
document_idstringrequired- The ID of the Google Doc to read
suggestions_view_modestring- How suggestions are rendered in the responseone of
DEFAULT_FOR_CURRENT_ACCESSSUGGESTIONS_INLINEPREVIEW_SUGGESTIONS_ACCEPTEDPREVIEW_WITHOUT_SUGGESTIONS
Also accepts
schema_versionandtool_versionto pin a version.googledwd_read_presentationRead the complete structure and content of a Google Slides presentation including slides, text, images, shapes, and metadata.Read-onlyRead Google Slides
Read the complete structure and content of a Google Slides presentation including slides, text, images, shapes, and metadata.
Inputs
presentation_idstringrequired- The ID of the Google Slides presentation to read
fieldsstring- Fields to include in the response
Also accepts
schema_versionandtool_versionto pin a version.googledwd_read_spreadsheetReturns everything about a spreadsheet — including spreadsheet metadata, sheet properties, cell values, formatting, themes, and pixel sizes.Read-onlyRead Google Sheet
Returns everything about a spreadsheet — including spreadsheet metadata, sheet properties, cell values, formatting, themes, and pixel sizes. If you only need cell values, use googledwd_get_values instead.
Inputs
spreadsheet_idstringrequired- The ID of the Google Sheet to read
include_grid_databoolean- Include cell data in the responsedefault
true rangesstring- Cell range to read in A1 notation
Also accepts
schema_versionandtool_versionto pin a version.googledwd_search_contentSearch inside the content of files stored in Google Drive using full-text search.Read-onlySearch Drive Content
Search inside the content of files stored in Google Drive using full-text search. Finds files where the body text matches the search term.
Inputs
search_termstringrequired- Text to search for inside file contents
fieldsstring- Fields to include in the response
mime_typestring- Filter results by MIME type
page_sizeinteger- Number of files to return per pagedefault
100 page_tokenstring- Token for the next page of results
supports_all_drivesboolean- Include shared drives in resultsdefault
false
Also accepts
schema_versionandtool_versionto pin a version.googledwd_search_filesSearch for files and folders in Google Drive using query filters like name, type, owner, and parent folder.Read-onlySearch Drive Files
Search for files and folders in Google Drive using query filters like name, type, owner, and parent folder.
Inputs
fieldsstring- Fields to include in the response
order_bystring- Sort order for results
page_sizeinteger- Number of files to return per pagedefault
100 page_tokenstring- Token for the next page of results
querystring- Drive search query string
supports_all_drivesboolean- Include shared drives in resultsdefault
false
Also accepts
schema_versionandtool_versionto pin a version.googledwd_search_peopleSearch people or contacts in the connected Google account using a query.Read-onlySearch People in Google
Search people or contacts in the connected Google account using a query. Uses DWD service account credentials.
Inputs
querystringrequired- Text query to search people (e.g., name, email address).
other_contactsboolean- Whether to include people not in the user's contacts (from 'Other Contacts').default
false page_sizeinteger- Maximum number of people to return.
person_fieldsarray- Fields to retrieve for each person.
Also accepts
schema_versionandtool_versionto pin a version.googledwd_add_group_memberAdd a member to a Google Workspace group using the Admin Directory API.WriteAdd Group Member
Add a member to a Google Workspace group using the Admin Directory API. Uses DWD service account credentials.
Inputs
group_keystringrequired- Email address or unique ID of the group.
member_emailstringrequired- Email address of the user or group to add as a member.
rolestring- Role to assign the member: OWNER, MANAGER, or MEMBER.one of
OWNERMANAGERMEMBER
googledwd_add_user_aliasAdd an email alias to a Google Workspace user using the Admin Directory API (users.aliases.insert).WriteAdd User Alias
Add an email alias to a Google Workspace user using the Admin Directory API (users.aliases.insert). The connector already has full user CRUD (Create/Get/Update/Delete Admin User) but no alias management. Uses DWD service account credentials.
Inputs
aliasstringrequired- The new alias email address to add for the user.
user_keystringrequired- Identifier for the user to add the alias to. Can be the user's primary email address, alias email address, or unique user ID.
googledwd_append_valuesAppend rows of data to a Google Sheets spreadsheet.WriteAppend Values to Google Sheet
Append rows of data to a Google Sheets spreadsheet. Data is added after the last row with existing content in the specified range.
Inputs
rangestringrequired- The A1 notation range to append data to (e.g. Sheet1!A1)
spreadsheet_idstringrequired- The ID of the spreadsheet to append data to
valuesarrayrequired- 2D array of values to append. Each inner array is a row.
insert_data_optionstring- How the input data should be inserted. Options: INSERT_ROWS (inserts new rows), OVERWRITE (overwrites existing data). Default: OVERWRITE
value_input_optionstring- How input data should be interpreted. Options: RAW (literal values), USER_ENTERED (as if typed in UI, parses formulas/dates). Default: USER_ENTERED
googledwd_complete_taskMark a task as completed in Google Tasks.WriteComplete Task
Mark a task as completed in Google Tasks. Sets the task status to 'completed'. Uses DWD service account credentials.
- Idempotent
Inputs
task_idstringrequired- The ID of the task to mark as completed.
task_list_idstringrequired- The ID of the task list containing the task.
Also accepts
schema_versionandtool_versionto pin a version.googledwd_copy_fileCreate a copy of an existing file in Google Drive.WriteCopy Drive File
Create a copy of an existing file in Google Drive. Optionally rename the copy, place it in a different folder, or add a description. Uses DWD service account credentials.
Inputs
file_idstringrequired- ID of the file to copy
descriptionstring- Optional description for the copied file
namestring- Name for the copied file. If omitted, the copy is named 'Copy of <original name>'.
parent_folder_idstring- ID of the destination folder for the copy. If omitted, the copy is placed in the same folder as the original.
Also accepts
schema_versionandtool_versionto pin a version.googledwd_create_admin_groupCreate a new Google Workspace group using the Admin Directory API.WriteCreate Admin Group
Create a new Google Workspace group using the Admin Directory API. Uses DWD service account credentials.
Inputs
emailstringrequired- Email address for the new group (e.g., 'engineering@example.com').
descriptionstring- Description of the group's purpose.
namestring- Display name for the group.
googledwd_create_admin_userCreate a new Google Workspace user using the Admin Directory API.WriteCreate Admin User
Create a new Google Workspace user using the Admin Directory API. Uses DWD service account credentials.
Inputs
family_namestringrequired- Last name of the user.
given_namestringrequired- First name of the user.
primary_emailstringrequired- Primary email address for the new user (e.g., 'jane@example.com').
change_password_at_next_loginboolean- Whether the user must change their password at next login.
org_unit_pathstring- Organizational unit path to place the user in (e.g., '/Engineering').
passwordstring- Initial password for the user. Required unless the domain provisions users via SSO only.
googledwd_create_chat_messageSend a new text message to a Google Chat space.WriteCreate Chat Message
Send a new text message to a Google Chat space. Optionally reply in an existing thread using a thread key. Uses DWD service account credentials.
Inputs
space_namestringrequired- Resource name of the Chat space to post the message to (e.g., 'spaces/AAAABBBBCCCC').
textstringrequired- Plain text body of the message to send.
request_idstring- Unique client-assigned request ID to deduplicate messages (e.g., a UUID). If a message with the same request ID already exists, it is returned instead of creating a new one.
thread_keystring- Thread key to reply in an existing thread. If the thread does not exist, a new thread is created (falls back to new thread).
Also accepts
schema_versionandtool_versionto pin a version.googledwd_create_contactCreate a new contact in Google People (Contacts).WriteCreate Contact
Create a new contact in Google People (Contacts). Provide at minimum a given name; optionally supply family name, email, phone number, organization, job title, and notes. Uses DWD service account credentials.
Inputs
given_namestringrequired- Given (first) name of the contact. Required.
emailstring- Email address for the new contact (e.g., jane@example.com).
family_namestring- Family (last) name of the contact.
job_titlestring- Job title of the contact within their organization.
notesstring- Free-text notes or biography to associate with the contact.
organizationstring- Organization (company) name for the contact.
phone_numberstring- Phone number for the contact (e.g., +1-555-555-5555).
Also accepts
schema_versionandtool_versionto pin a version.googledwd_create_documentCreate a new blank Google Doc with an optional title.WriteCreate Google Doc
Create a new blank Google Doc with an optional title. Returns the new document's ID and metadata.
Inputs
titlestring- Title of the new document
Also accepts
schema_versionandtool_versionto pin a version.googledwd_create_draftCreate a new draft email in Gmail for the authenticated user.WriteCreate Gmail Draft
Create a new draft email in Gmail for the authenticated user. Constructs a MIME message and saves it as a draft. Supports plain text and HTML content types, CC, BCC, and threading. Uses DWD service account credentials.
Inputs
bodystringrequired- The body content of the draft email. Provide plain text or HTML depending on the content_type field. Example: 'Hello, this is my draft message.'
subjectstringrequired- The subject line of the draft email. Example: 'Meeting Follow-up'.
tostringrequired- The recipient email address(es) for the draft. Provide a single address or comma-separated list. Example: 'recipient@example.com' or 'a@example.com,b@example.com'.
bccstring- BCC recipients for the draft email. Provide a comma-separated list of email addresses, e.g., bcc1@example.com,bcc2@example.com. Optional.
ccstring- CC recipients for the draft email. Provide a comma-separated list of email addresses, e.g., cc1@example.com,cc2@example.com. Optional.
content_typestring- The MIME content type for the email body. Use 'text/plain' for plain text or 'text/html' for HTML content. Defaults to 'text/plain'.one of
text/plaintext/htmldefaulttext/plain thread_idstring- The Gmail thread ID to associate this draft with an existing conversation. If provided, the draft will be part of that thread. Example: '17a1b2c3d4e5f6g7'.
Also accepts
schema_versionandtool_versionto pin a version.googledwd_create_eventCreate a new event in a connected Google Calendar account.WriteCreate Calendar Event
Create a new event in a connected Google Calendar account. Supports meeting links, recurrence, attendees, and more. Uses DWD service account credentials.
Inputs
start_datetimestringrequired- Event start time in RFC3339 format
summarystringrequired- Event title/summary
attendees_emailsarray- Attendee email addresses
calendar_idstring- Calendar ID to create the event indefault
primary create_meeting_roomboolean- Generate a Google Meet link for this eventdefault
false descriptionstring- Optional event description
event_duration_hourinteger- Duration of event in hours
event_duration_minutesinteger- Duration of event in minutesdefault
30 event_typestring- Event type for display purposesone of
defaultfocusTimeoutOfOfficeworkingLocationdefaultdefault guests_can_invite_othersboolean- Allow guests to invite othersdefault
false guests_can_modifyboolean- Allow guests to modify the eventdefault
false guests_can_see_other_guestsboolean- Allow guests to see each otherdefault
false locationstring- Location of the event
recurrencearray- Recurrence rules (iCalendar RRULE format)
send_updatesboolean- Send update notifications to attendeesdefault
false timezonestring- Timezone for the event (IANA time zone identifier)default
UTC transparencystring- Calendar transparency (free/busy)one of
opaquetransparentdefaultopaque visibilitystring- Visibility of the eventone of
defaultpublicprivateconfidentialdefaultdefault
Also accepts
schema_versionandtool_versionto pin a version.googledwd_create_filterCreate a new email filter for the authenticated Gmail account.WriteCreate Email Filter
Create a new email filter for the authenticated Gmail account. Specify criteria (sender, recipient, subject, query, or attachment) and actions (apply labels, forward, archive, star, trash, mark as read, etc.). At least one criteria field should be provided. Uses DWD service account credentials.
Inputs
add_label_idsarray- List of Gmail label IDs to apply to matching messages (e.g., ['Label_123', 'STARRED']). Use the List Labels tool to find valid label IDs.
forwardstring- Email address to forward matching messages to. The address must already be configured as a forwarding address in the Gmail account.
fromstring- Sender email address or domain to match in the filter criteria (e.g., 'alerts@github.com' or '@newsletter.com').
has_attachmentboolean- If true, only match messages that have at least one attachment.
querystring- Gmail search query string to match messages using Gmail's search syntax (e.g., 'larger:10M', 'is:important').
remove_label_idsarray- List of Gmail label IDs to remove from matching messages (e.g., ['INBOX'] to archive, ['UNREAD'] to mark as read).
should_always_mark_importantboolean- If true, always mark matching messages as important regardless of Gmail's automatic importance detection.
should_archiveboolean- If true, skip the inbox for matching messages (equivalent to adding the 'Archive' action).
should_mark_readboolean- If true, automatically mark matching messages as read.
should_never_mark_importantboolean- If true, never mark matching messages as important, overriding Gmail's automatic importance detection.
should_never_spamboolean- If true, never send matching messages to the Spam folder.
should_starboolean- If true, automatically star matching messages.
should_trashboolean- If true, automatically move matching messages to the Trash.
subjectstring- Subject line text to match in the filter criteria (e.g., '[GitHub]' or 'Invoice').
tostring- Recipient email address to match in the filter criteria (e.g., 'team@example.com').
Also accepts
schema_versionandtool_versionto pin a version.googledwd_create_folderCreate a new folder in Google Drive.WriteCreate Drive Folder
Create a new folder in Google Drive. Optionally place it inside a parent folder and add a description. Uses DWD service account credentials.
Inputs
namestringrequired- Name of the new folder
descriptionstring- Optional description for the new folder
parent_folder_idstring- ID of the parent folder to create this folder inside. If omitted, the folder is created in the root of My Drive.
Also accepts
schema_versionandtool_versionto pin a version.googledwd_create_formCreate a new Google Form with a title and optional document title.WriteCreate Google Form
Create a new Google Form with a title and optional document title. Returns the new form's ID and metadata.
Inputs
titlestringrequired- The title of the form shown to respondents
document_titlestring- The title of the document shown in Google Drive (defaults to the form title if not provided)
googledwd_create_meet_spaceCreate a new Google Meet meeting space.WriteCreate Meet Space
Create a new Google Meet meeting space. Optionally configure access type and entry point access restrictions. Returns the meeting URI and space details. Uses DWD service account credentials.
Inputs
access_typestring- Access type for the meeting space. One of: 'OPEN' (anyone with link), 'TRUSTED' (domain users), 'RESTRICTED' (only invited participants).one of
OPENTRUSTEDRESTRICTED entry_point_accessstring- Who can use entry points to join. One of: 'ALL' (anyone), 'CREATOR_APP_ONLY' (only the creating app's users).one of
ALLCREATOR_APP_ONLY
Also accepts
schema_versionandtool_versionto pin a version.googledwd_create_presentationCreate a new Google Slides presentation with an optional title.WriteCreate Presentation
Create a new Google Slides presentation with an optional title.
Inputs
titlestring- Title of the new presentation
Also accepts
schema_versionandtool_versionto pin a version.googledwd_create_spreadsheetCreate a new Google Sheets spreadsheet with an optional title and initial sheet configuration.WriteCreate Google Sheet
Create a new Google Sheets spreadsheet with an optional title and initial sheet configuration. Returns the new spreadsheet ID and metadata.
Inputs
localestring- Locale of the spreadsheet
sheetsarray- Initial sheets to include in the spreadsheet
time_zonestring- Time zone for the spreadsheet
titlestring- Title of the new spreadsheet
Also accepts
schema_versionandtool_versionto pin a version.googledwd_create_taskCreate a new task in a specified Google Tasks task list.WriteCreate Task
Create a new task in a specified Google Tasks task list. Supports setting a title, notes, due date, and initial status. Uses DWD service account credentials.
Inputs
task_list_idstringrequired- The ID of the task list in which to create the task.
titlestringrequired- Title of the new task.
duestring- Due date and time of the task in RFC3339 datetime format (e.g., 2025-08-15T17:00:00Z). Note: the time portion is ignored by the Google Tasks API; only the date is used.
notesstring- Additional notes or description for the task.
statusstring- Status of the task. Use 'needsAction' for an open task or 'completed' for a finished task.one of
needsActioncompleted
Also accepts
schema_versionandtool_versionto pin a version.googledwd_create_task_listCreate a new task list in Google Tasks for the authenticated user.WriteCreate Task List
Create a new task list in Google Tasks for the authenticated user. Returns the created task list with its ID and metadata. Uses DWD service account credentials.
Inputs
titlestringrequired- Title of the new task list.
Also accepts
schema_versionandtool_versionto pin a version.googledwd_create_vault_matterCreate a new matter in Google Vault for e-discovery and legal hold purposes.WriteCreate Vault Matter
Create a new matter in Google Vault for e-discovery and legal hold purposes. Provide a name and an optional description. Uses DWD service account credentials.
Inputs
namestringrequired- Name of the new Vault matter (e.g., 'Q1 Litigation 2024').
descriptionstring- Optional description of the Vault matter.
Also accepts
schema_versionandtool_versionto pin a version.googledwd_modify_message_labelsAdd or remove labels on a Gmail message.WriteModify Gmail Message Labels
Add or remove labels on a Gmail message. Use label IDs such as 'INBOX', 'UNREAD', 'STARRED', 'IMPORTANT', 'TRASH', 'SPAM', or custom label IDs. At least one of add_label_ids or remove_label_ids should be provided. Uses DWD service account credentials.
- Idempotent
Inputs
message_idstringrequired- The Gmail message ID whose labels will be modified. Obtain this from a list or search messages operation. Example: '17a1b2c3d4e5f6g7'.
add_label_idsarray- List of label IDs to add to the message. Use system labels such as 'INBOX', 'UNREAD', 'STARRED', 'IMPORTANT', or custom label IDs retrieved from the Labels API. Example: ["STARRED", "INBOX"].
remove_label_idsarray- List of label IDs to remove from the message. Use system labels such as 'UNREAD', 'STARRED', 'INBOX', or custom label IDs. Example: ["UNREAD"].
Also accepts
schema_versionandtool_versionto pin a version.googledwd_move_fileMove a file or folder to a different location in Google Drive by updating its parent folder.WriteMove Drive File
Move a file or folder to a different location in Google Drive by updating its parent folder. Optionally rename the file during the move. Uses DWD service account credentials.
- Idempotent
Inputs
file_idstringrequired- ID of the file or folder to move
new_parent_idstringrequired- ID of the destination folder to move the file into
namestring- Optional new name for the file after moving. If omitted, the file keeps its current name.
old_parent_idstring- ID of the current parent folder to remove the file from. Providing this ensures a clean move without the file appearing in multiple folders.
Also accepts
schema_versionandtool_versionto pin a version.googledwd_query_drive_activityQuery Google Drive activity to see who viewed, edited, moved, or shared files.WriteQuery Drive Activity
Query Google Drive activity to see who viewed, edited, moved, or shared files. Useful for auditing and compliance. Uses DWD service account credentials.
- Idempotent
Inputs
ancestor_namestring- Restrict activity to items under this folder. Format: 'items/FOLDER_ID'. Example: 'items/0B_abc123xyz'
consolidation_strategystring- How related activity is grouped. 'none' means each action is its own activity; 'legacy' consolidates similar actions. Valid values: 'none', 'legacy'.one of
nonelegacy filterstring- Filter string to narrow activity results. Example: "time >= \"2026-01-01T00:00:00Z\""
item_namestring- Restrict activity to a specific file or folder. Format: 'items/FILE_ID'. Example: 'items/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgVE2upms'
page_sizeinteger- Maximum number of activity records to return per page. Max 100.
page_tokenstring- Token for the next page of results from a previous response.
Also accepts
schema_versionandtool_versionto pin a version.googledwd_send_messageSend an email immediately via the impersonated mailbox's Gmail account (users.messages.send).WriteSend Gmail Message
Send an email immediately via the impersonated mailbox's Gmail account (users.messages.send). Constructs a MIME message and sends it right away. This connector can create drafts (Create Gmail Draft) but that only saves a draft; use this tool to actually deliver mail. Uses DWD service account credentials.
Inputs
bodystringrequired- The body content of the email. Provide plain text or HTML depending on the content_type field. Example: 'Hello, this email was sent via the API.'
subjectstringrequired- The subject line of the email. Example: 'Meeting Follow-up'. ASCII/Latin-1 text is recommended; extended Unicode subjects are sent as-is without RFC 2047 encoding.
tostringrequired- The recipient email address(es). Provide a single address or comma-separated list. Example: 'recipient@example.com' or 'a@example.com,b@example.com'.
bccstring- BCC recipients for the email. Provide a comma-separated list of email addresses, e.g., bcc1@example.com,bcc2@example.com. Optional.
ccstring- CC recipients for the email. Provide a comma-separated list of email addresses, e.g., cc1@example.com,cc2@example.com. Optional.
content_typestring- The MIME content type for the email body. Use 'text/plain' for plain text or 'text/html' for HTML content. Defaults to 'text/plain'.one of
text/plaintext/htmldefaulttext/plain thread_idstring- The Gmail thread ID to associate this message with an existing conversation. If provided, the message will be added to that thread. Example: '17a1b2c3d4e5f6g7'.
googledwd_undelete_admin_userRestore a recently deleted Google Workspace user using the Admin Directory API.WriteUndelete Admin User
Restore a recently deleted Google Workspace user using the Admin Directory API. Only works within the recovery window after deletion. Uses DWD service account credentials.
Inputs
user_keystringrequired- The unique ID of the deleted user to restore (immutable ID, not email).
org_unit_pathstring- Organizational unit path to restore the user into.
googledwd_update_admin_groupUpdate an existing Google Workspace group's profile using the Admin Directory API.WriteUpdate Admin Group
Update an existing Google Workspace group's profile using the Admin Directory API. Uses DWD service account credentials.
- Idempotent
Inputs
group_keystringrequired- Email address or unique ID of the group to update.
descriptionstring- Updated description of the group's purpose.
namestring- Updated display name for the group.
googledwd_update_admin_userUpdate an existing Google Workspace user's profile using the Admin Directory API.WriteUpdate Admin User
Update an existing Google Workspace user's profile using the Admin Directory API. Uses DWD service account credentials.
- Idempotent
Inputs
user_keystringrequired- Primary email address or unique user ID of the user to update.
family_namestring- Updated last name of the user.
given_namestring- Updated first name of the user.
org_unit_pathstring- New organizational unit path for the user (e.g., '/Sales').
passwordstring- New password for the user.
suspendedboolean- Whether the user's account is suspended.
googledwd_update_contactUpdate an existing Google People contact's names, email address, or phone number.WriteUpdate Contact
Update an existing Google People contact's names, email address, or phone number. Requires the contact's resource name (e.g., 'people/c12345') and the current etag to prevent conflicts. Uses DWD service account credentials.
- Idempotent
Inputs
etagstringrequired- Current etag of the contact, required to prevent update conflicts. Obtain from a previous get or list response.
resource_namestringrequired- Resource name of the contact to update (e.g., 'people/c12345'). Obtain from a create or list response.
emailstring- Updated email address for the contact (e.g., newemail@example.com).
family_namestring- Updated family (last) name of the contact.
given_namestring- Updated given (first) name of the contact.
phone_numberstring- Updated phone number for the contact (e.g., +1-555-555-5555).
Also accepts
schema_versionandtool_versionto pin a version.googledwd_update_documentUpdate the content of an existing Google Doc using batch update requests.WriteUpdate Google Doc Content
Update the content of an existing Google Doc using batch update requests. Supports inserting and deleting text, formatting, tables, and other document elements.
Inputs
document_idstringrequired- The ID of the Google Doc to update
requestsarrayrequired- Array of update requests to apply to the document
write_controlobject- Optional write control for revision management
Also accepts
schema_versionandtool_versionto pin a version.googledwd_update_eventUpdate an existing event in a Google Calendar account.WriteUpdate Calendar Event
Update an existing event in a Google Calendar account. Only provided fields will be updated. Supports updating time, attendees, location, meeting links, and more. Uses DWD service account credentials.
- Idempotent
Inputs
calendar_idstringrequired- Calendar ID containing the eventdefault
primary event_idstringrequired- The ID of the calendar event to update
attendees_emailsarray- Attendee email addresses
create_meeting_roomboolean- Generate a Google Meet link for this eventdefault
false descriptionstring- Optional event description
end_datetimestring- Event end time in RFC3339 format
event_duration_hourinteger- Duration of event in hours
event_duration_minutesinteger- Duration of event in minutesdefault
30 event_typestring- Event type for display purposesone of
defaultfocusTimeoutOfOfficeworkingLocationdefaultdefault guests_can_invite_othersboolean- Allow guests to invite othersdefault
false guests_can_modifyboolean- Allow guests to modify the eventdefault
false guests_can_see_other_guestsboolean- Allow guests to see each otherdefault
false locationstring- Location of the event
recurrencearray- Recurrence rules (iCalendar RRULE format)
send_updatesboolean- Send update notifications to attendeesdefault
false start_datetimestring- Event start time in RFC3339 format
summarystring- Event title/summary
timezonestring- Timezone for the event (IANA time zone identifier)default
UTC transparencystring- Calendar transparency (free/busy)one of
opaquetransparentdefaultopaque visibilitystring- Visibility of the eventone of
defaultpublicprivateconfidentialdefaultdefault
Also accepts
schema_versionandtool_versionto pin a version.googledwd_update_group_settingsUpdate settings for a Google Workspace group.WriteUpdate Group Settings
Update settings for a Google Workspace group. Control who can post, join, view members, and more. Uses DWD service account credentials.
- Idempotent
Inputs
group_emailstringrequired- The email address of the Google Workspace group to update. Example: 'engineering@example.com'
allow_external_membersboolean- Whether members outside the domain can join the group. True to allow external members, false to restrict to domain only.
is_archivedboolean- Whether the group is archived. Archived groups cannot receive new messages.
message_moderation_levelstring- Moderation level for messages posted to the group. Valid values: 'MODERATE_ALL_MESSAGES', 'MODERATE_NON_MEMBERS', 'MODERATE_NEW_MEMBERS', 'MODERATE_NONE'.one of
MODERATE_ALL_MESSAGESMODERATE_NON_MEMBERSMODERATE_NEW_MEMBERSMODERATE_NONE who_can_joinstring- Permission to join the group. Valid values: 'ANYONE_CAN_JOIN', 'ALL_IN_DOMAIN_CAN_JOIN', 'INVITED_CAN_JOIN', 'CAN_REQUEST_TO_JOIN'.one of
ANYONE_CAN_JOINALL_IN_DOMAIN_CAN_JOININVITED_CAN_JOINCAN_REQUEST_TO_JOIN who_can_post_messagestring- Permission to post messages to the group. Valid values: 'NONE_CAN_POST', 'ALL_MANAGERS_CAN_POST', 'ALL_MEMBERS_CAN_POST', 'ALL_OWNERS_CAN_POST', 'ALL_IN_DOMAIN_CAN_POST', 'ANYONE_CAN_POST'.one of
NONE_CAN_POSTALL_MANAGERS_CAN_POSTALL_MEMBERS_CAN_POSTALL_OWNERS_CAN_POSTALL_IN_DOMAIN_CAN_POSTANYONE_CAN_POST who_can_view_groupstring- Permission to view the group's messages. Valid values: 'ANYONE_CAN_VIEW', 'ALL_IN_DOMAIN_CAN_VIEW', 'ALL_MEMBERS_CAN_VIEW', 'ALL_MANAGERS_CAN_VIEW', 'ALL_OWNERS_CAN_VIEW'.one of
ANYONE_CAN_VIEWALL_IN_DOMAIN_CAN_VIEWALL_MEMBERS_CAN_VIEWALL_MANAGERS_CAN_VIEWALL_OWNERS_CAN_VIEW who_can_view_membershipstring- Permission to view the group's member list. Valid values: 'ALL_IN_DOMAIN_CAN_VIEW', 'ALL_MEMBERS_CAN_VIEW', 'ALL_MANAGERS_CAN_VIEW', 'ALL_OWNERS_CAN_VIEW'.one of
ALL_IN_DOMAIN_CAN_VIEWALL_MEMBERS_CAN_VIEWALL_MANAGERS_CAN_VIEWALL_OWNERS_CAN_VIEW
Also accepts
schema_versionandtool_versionto pin a version.googledwd_update_send_asUpdate send-as alias settings such as the email signature, display name, or reply-to address for the authenticated Gmail account.WriteUpdate Send-As Alias
Update send-as alias settings such as the email signature, display name, or reply-to address for the authenticated Gmail account. Use the user's own email address to update their default signature. Uses DWD service account credentials.
- Idempotent
Inputs
send_as_emailstringrequired- The send-as alias email address to update. Use the user's own email address (e.g., 'user@example.com') to update their default signature and settings.
display_namestring- The display name shown as the sender name for this alias (e.g., 'Jane Smith').
is_defaultboolean- If true, sets this send-as alias as the default address used when composing new messages.
reply_to_addressstring- An optional email address that appears in the Reply-To header for messages sent from this alias (e.g., 'replies@example.com').
signaturestring- HTML email signature to set for this alias. Supports full HTML markup (e.g., '<b>Jane Smith</b><br>Senior Engineer').
Also accepts
schema_versionandtool_versionto pin a version.googledwd_update_taskUpdate an existing task in a Google Tasks task list.WriteUpdate Task
Update an existing task in a Google Tasks task list. Only the fields you provide will be updated. Supports changing title, notes, due date, and status. Uses DWD service account credentials.
- Idempotent
Inputs
task_idstringrequired- The ID of the task to update.
task_list_idstringrequired- The ID of the task list containing the task.
duestring- Updated due date and time of the task in RFC3339 datetime format (e.g., 2025-08-15T17:00:00Z). Note: the time portion is ignored by the Google Tasks API; only the date is used.
notesstring- Updated notes or description for the task.
statusstring- Updated status of the task. Use 'needsAction' to reopen a task or 'completed' to mark it done.one of
needsActioncompleted titlestring- Updated title of the task.
Also accepts
schema_versionandtool_versionto pin a version.googledwd_update_vacation_settingsUpdate the vacation auto-reply settings for the authenticated Gmail account.WriteUpdate Vacation Settings
Update the vacation auto-reply settings for the authenticated Gmail account. Set enableAutoReply to true to activate out-of-office responses. Uses DWD service account credentials.
- Idempotent
Inputs
enable_auto_replybooleanrequired- Whether to enable the vacation auto-reply. Set to true to turn on out-of-office responses, false to disable.
end_timestring- End time for the vacation auto-reply as epoch milliseconds in string format (e.g., '1754006400000'). After this time, auto-reply stops.
response_body_htmlstring- HTML body of the vacation auto-reply message. If both plain text and HTML are provided, HTML takes precedence for clients that support it.
response_body_plain_textstring- Plain text body of the vacation auto-reply message.
response_subjectstring- Subject line of the vacation auto-reply email (e.g., 'Out of Office: Back on Monday').
restrict_to_contactsboolean- If true, only contacts in the user's Google Contacts will receive the auto-reply. Default is false.default
false restrict_to_domainboolean- If true, only users in the same Google Workspace domain will receive the auto-reply. Default is false.default
false start_timestring- Start time for the vacation auto-reply as epoch milliseconds in string format (e.g., '1753401600000'). Auto-reply activates from this time.
Also accepts
schema_versionandtool_versionto pin a version.googledwd_update_valuesUpdate cell values in a specific range of a Google Sheet.WriteUpdate Google Sheets Values
Update cell values in a specific range of a Google Sheet. Supports writing single cells or multiple rows and columns at once.
Inputs
rangestringrequired- Cell range to update in A1 notation
spreadsheet_idstringrequired- The ID of the Google Sheet to update
valuesarrayrequired- 2D array of values to write to the range
include_values_in_responseboolean- Return the updated cell values in the responsedefault
false value_input_optionstring- How input values should be interpretedone of
RAWUSER_ENTEREDdefaultUSER_ENTERED
Also accepts
schema_versionandtool_versionto pin a version.googledwd_clear_valuesClear all values in a specified range of a Google Sheets spreadsheet.DestructiveClear Values in Google Sheet
Clear all values in a specified range of a Google Sheets spreadsheet. Formatting is preserved; only the cell values are cleared.
- Idempotent
Inputs
rangestringrequired- The A1 notation range to clear (e.g. Sheet1!A1:D10)
spreadsheet_idstringrequired- The ID of the spreadsheet to clear values in
googledwd_delete_admin_groupDelete a Google Workspace group using the Admin Directory API.DestructiveDelete Admin Group
Delete a Google Workspace group using the Admin Directory API. Uses DWD service account credentials.
- Idempotent
Inputs
group_keystringrequired- Email address or unique ID of the group to delete.
googledwd_delete_admin_userDelete a Google Workspace user using the Admin Directory API.DestructiveDelete Admin User
Delete a Google Workspace user using the Admin Directory API. The user is moved to a recoverable deleted state for a limited time. Uses DWD service account credentials.
- Idempotent
Inputs
user_keystringrequired- Primary email address or unique user ID of the user to delete.
googledwd_delete_contactPermanently delete a contact from Google People using its resource name (e.g., 'people/c12345').DestructiveDelete Contact
Permanently delete a contact from Google People using its resource name (e.g., 'people/c12345'). This action cannot be undone. Uses DWD service account credentials.
- Idempotent
Inputs
resource_namestringrequired- Resource name of the contact to delete (e.g., 'people/c12345'). Obtain from a create or list response.
Also accepts
schema_versionandtool_versionto pin a version.googledwd_delete_eventDelete an event from a connected Google Calendar account.DestructiveDelete Calendar Event
Delete an event from a connected Google Calendar account. Requires the calendar ID and event ID. Uses DWD service account credentials.
Inputs
event_idstringrequired- The ID of the calendar event to delete
calendar_idstring- The ID of the calendar from which the event should be deleteddefault
primary
Also accepts
schema_versionandtool_versionto pin a version.googledwd_delete_filePermanently delete a file or folder in Google Drive by its file ID.DestructiveDelete Drive File
Permanently delete a file or folder in Google Drive by its file ID. This action cannot be undone. Uses DWD service account credentials.
- Idempotent
Inputs
file_idstringrequired- ID of the file or folder to delete
supports_all_drivesboolean- Whether the request supports files in shared drivesdefault
false
Also accepts
schema_versionandtool_versionto pin a version.googledwd_delete_taskPermanently delete a task from a Google Tasks task list.DestructiveDelete Task
Permanently delete a task from a Google Tasks task list. This action cannot be undone. Uses DWD service account credentials.
- Idempotent
Inputs
task_idstringrequired- The ID of the task to delete.
task_list_idstringrequired- The ID of the task list containing the task.
Also accepts
schema_versionandtool_versionto pin a version.googledwd_end_meet_conferenceEnd the active conference in a Google Meet space, disconnecting all participants.DestructiveEnd Meet Conference
End the active conference in a Google Meet space, disconnecting all participants. Requires the resource name of the space (e.g., 'spaces/abc123'). Uses DWD service account credentials.
- Idempotent
Inputs
space_namestringrequired- Resource name of the Meet space whose active conference to end (e.g., 'spaces/abc123').
Also accepts
schema_versionandtool_versionto pin a version.googledwd_make_admin_userGrant or revoke super administrator privileges for a Google Workspace user using the Admin Directory API.DestructiveMake Admin User
Grant or revoke super administrator privileges for a Google Workspace user using the Admin Directory API. Uses DWD service account credentials.
- Idempotent
Inputs
statusbooleanrequired- true to grant super admin privileges, false to revoke them.
user_keystringrequired- Primary email address or unique user ID of the user.
googledwd_remove_group_memberRemove a member from a Google Workspace group using the Admin Directory API.DestructiveRemove Group Member
Remove a member from a Google Workspace group using the Admin Directory API. Uses DWD service account credentials.
- Idempotent
Inputs
group_keystringrequired- Email address or unique ID of the group.
member_keystringrequired- Email address or unique ID of the member to remove.
googledwd_signout_admin_userSign a Google Workspace user out of all web and device sessions and reset their sign-in cookies using the Admin Directory API.DestructiveSign Out Admin User
Sign a Google Workspace user out of all web and device sessions and reset their sign-in cookies using the Admin Directory API. Commonly used to immediately revoke access. Uses DWD service account credentials.
- Idempotent
Inputs
user_keystringrequired- Primary email address or unique user ID of the user to sign out.
googledwd_trash_messageMove a Gmail message to the Trash.DestructiveTrash Gmail Message
Move a Gmail message to the Trash. The message is not permanently deleted and can be recovered from Trash within 30 days. This operation is idempotent — trashing an already-trashed message is a no-op. Uses DWD service account credentials.
- Idempotent
Inputs
message_idstringrequired- The Gmail message ID to move to Trash. Obtain this from a list or search messages operation. Example: '17a1b2c3d4e5f6g7'.
Also accepts
schema_versionandtool_versionto pin a version.
No tools match.
Workflows
Create a connected account
Before executing tools, create a connected account for each Google Workspace user you want to impersonate. Pass the user’s email as subject — this tells Scalekit which Workspace user the service account should act as. The identifier is your application’s ID for that user.
response = scalekit_client.actions.create_connected_account( # connection_name: the name of the connection you created in the setup step above connection_name='googledwd', identifier='user_123', authorization_details={ "google_dwd": { # subject: the Google Workspace user you want to impersonate "subject": "alice@yourcompany.com", } },)print(response.connected_account.id)print(response.connected_account.status)Execute a tool
Use the identifier you set when creating the connected account. Scalekit resolves the impersonated Workspace user from that mapping.
response = scalekit_client.actions.execute_tool( # connection_name: the name of the connection you created in the setup step above connection_name='googledwd', identifier='user_123', tool_name='googledwd_fetch_mails', tool_input={ "max_results": 5, "format": "metadata", "include_spam_trash": False, },)print(response)