clovyr-workspace-mcp
v1.8.2.post1Comprehensive, highly performant Google Workspace Streamable HTTP & SSE MCP Server for Calendar, Gmail, Docs, Sheets, Slides & Drive
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
start_google_auth Start Google Auth
Manually initiate Google OAuth authentication flow. NOTE: This is a legacy OAuth 2.0 tool and is disabled when OAuth 2.1 is enabled. The authentication system automatically handles credential checks and prompts for authentication when needed. Only use this tool if: 1. You need to re-authenticate with different credentials 2. You want to proactively authenticate before using other tools 3. The automatic authentication flow failed and you need to retry In most cases, simply try calling the Google Workspace tool you need - it will automatically handle authentication if required.
| Parameter | Type | Description |
|---|---|---|
service_name * | string | |
user_google_email | string |
search_gmail_messages Search Gmail Messages
Searches messages in a user's Gmail account based on a query. Returns both Message IDs and Thread IDs for each found message, along with Gmail web interface links for manual verification. Supports pagination via page_token parameter.
| Parameter | Type | Description |
|---|---|---|
query * | string | The search query. Supports standard Gmail search operators. |
user_google_email * | string | The user's Google email address. Required. |
page_size | integer | The maximum number of messages to return. Defaults to 10. |
page_token | Token for retrieving the next page of results. Use the next_page_token from a previous response. |
get_gmail_message_content Get Gmail Message Content
Retrieves the full content (subject, sender, recipients, plain text body) of a specific Gmail message.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | The unique ID of the Gmail message to retrieve. |
user_google_email * | string | The user's Google email address. Required. |
get_gmail_messages_content_batch Get Gmail Messages Content Batch
Retrieves the content of multiple Gmail messages in a single batch request. Supports up to 25 messages per batch to prevent SSL connection exhaustion.
| Parameter | Type | Description |
|---|---|---|
message_ids * | array | List of Gmail message IDs to retrieve (max 25 per batch). |
user_google_email * | string | The user's Google email address. Required. |
format | string | Message format. "full" includes body, "metadata" only headers. |
get_gmail_attachment_content Get Gmail Attachment Content
Downloads the content of a specific email attachment.
| Parameter | Type | Description |
|---|---|---|
attachment_id * | string | The ID of the attachment to download. |
message_id * | string | The ID of the Gmail message containing the attachment. |
user_google_email * | string | The user's Google email address. Required. |
send_gmail_message Send Gmail Message
Sends an email using the user's Gmail account. Supports both new emails and replies with optional attachments. Supports Gmail's "Send As" feature to send from configured alias addresses.
| Parameter | Type | Description |
|---|---|---|
body * | string | Email body content (plain text or HTML). |
subject * | string | Email subject. |
to * | string | Recipient email address. |
user_google_email * | string | The user's Google email address. Required for authentication. |
attachments | Optional list of attachments. Each can have: "path" (file path, auto-encodes), OR "content" (standard base64, not urlsafe) + "filename". Optional "mime_type". Example: [{"path": "/path/to/file.pdf"}]… | |
bcc | Optional BCC email address. | |
body_format | string | Email body format. Use 'plain' for plaintext or 'html' for HTML content. |
cc | Optional CC email address. | |
from_email | Optional 'Send As' alias email address. Must be configured in Gmail settings (Settings > Accounts > Send mail as). If not provided, uses the authenticated user's email. | |
in_reply_to | Optional Message-ID of the message being replied to. | |
references | Optional chain of Message-IDs for proper threading. | |
thread_id | Optional Gmail thread ID to reply within. |
draft_gmail_message Draft Gmail Message
Creates a draft email in the user's Gmail account. Supports both new drafts and reply drafts with optional attachments. Supports Gmail's "Send As" feature to draft from configured alias addresses.
| Parameter | Type | Description |
|---|---|---|
body * | string | Email body (plain text). |
subject * | string | Email subject. |
user_google_email * | string | The user's Google email address. Required for authentication. |
attachments | Optional list of attachments. Each can have: 'path' (file path, auto-encodes), OR 'content' (standard base64, not urlsafe) + 'filename'. Optional 'mime_type' (auto-detected from path if not provided). | |
bcc | Optional BCC email address. | |
body_format | string | Email body format. Use 'plain' for plaintext or 'html' for HTML content. |
cc | Optional CC email address. | |
from_email | Optional 'Send As' alias email address. Must be configured in Gmail settings (Settings > Accounts > Send mail as). If not provided, uses the authenticated user's email. | |
in_reply_to | Optional Message-ID of the message being replied to. | |
references | Optional chain of Message-IDs for proper threading. | |
thread_id | Optional Gmail thread ID to reply within. | |
to | Optional recipient email address. |
get_gmail_thread_content Get Gmail Thread Content
Retrieves the complete content of a Gmail conversation thread, including all messages.
| Parameter | Type | Description |
|---|---|---|
thread_id * | string | The unique ID of the Gmail thread to retrieve. |
user_google_email * | string | The user's Google email address. Required. |
get_gmail_threads_content_batch Get Gmail Threads Content Batch
Retrieves the content of multiple Gmail threads in a single batch request. Supports up to 25 threads per batch to prevent SSL connection exhaustion.
| Parameter | Type | Description |
|---|---|---|
thread_ids * | array | A list of Gmail thread IDs to retrieve. The function will automatically batch requests in chunks of 25. |
user_google_email * | string | The user's Google email address. Required. |
list_gmail_labels List Gmail Labels
Lists all labels in the user's Gmail account.
| Parameter | Type | Description |
|---|---|---|
user_google_email * | string | The user's Google email address. Required. |
manage_gmail_label Manage Gmail Label
Manages Gmail labels: create, update, or delete labels.
| Parameter | Type | Description |
|---|---|---|
action * | string | Action to perform on the label. |
user_google_email * | string | The user's Google email address. Required. |
label_id | Label ID. Required for update and delete operations. | |
label_list_visibility | string | Whether the label is shown in the label list. |
message_list_visibility | string | Whether the label is shown in the message list. |
name | Label name. Required for create, optional for update. |
list_gmail_filters List Gmail Filters
Lists all Gmail filters configured in the user's mailbox.
| Parameter | Type | Description |
|---|---|---|
user_google_email * | string | The user's Google email address. Required. |
create_gmail_filter Create Gmail Filter
Creates a Gmail filter using the users.settings.filters API.
| Parameter | Type | Description |
|---|---|---|
action * | object | Filter action object as defined in the Gmail API. |
criteria * | object | Filter criteria object as defined in the Gmail API. |
user_google_email * | string | The user's Google email address. Required. |
delete_gmail_filter Delete Gmail Filter
Deletes a Gmail filter by ID.
| Parameter | Type | Description |
|---|---|---|
filter_id * | string | ID of the filter to delete. |
user_google_email * | string | The user's Google email address. Required. |
modify_gmail_message_labels Modify Gmail Message Labels
Adds or removes labels from a Gmail message. To archive an email, remove the INBOX label. To delete an email, add the TRASH label.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | The ID of the message to modify. |
user_google_email * | string | The user's Google email address. Required. |
add_label_ids | array | Label IDs to add to the message. |
remove_label_ids | array | Label IDs to remove from the message. |
batch_modify_gmail_message_labels Batch Modify Gmail Message Labels
Adds or removes labels from multiple Gmail messages in a single batch request.
| Parameter | Type | Description |
|---|---|---|
message_ids * | array | A list of message IDs to modify. |
user_google_email * | string | The user's Google email address. Required. |
add_label_ids | array | Label IDs to add to messages. |
remove_label_ids | array | Label IDs to remove from messages. |
search_drive_files Search Drive Files
Searches for files and folders within a user's Google Drive, including shared drives.
| Parameter | Type | Description |
|---|---|---|
query * | string | The search query string. Supports Google Drive search operators. |
user_google_email * | string | The user's Google email address. Required. |
corpora | Bodies of items to query (e.g., 'user', 'domain', 'drive', 'allDrives'). If 'drive_id' is specified and 'corpora' is None, it defaults to 'drive'. Otherwise,… | |
drive_id | ID of the shared drive to search. If None, behavior depends on `corpora` and `include_items_from_all_drives`. | |
include_items_from_all_drives | boolean | Whether shared drive items should be included in results. Defaults to True. This is effective when not specifying a `drive_id`. |
page_size | integer | The maximum number of files to return. Defaults to 10. |
get_drive_file_content Get Drive File Content
Retrieves the content of a specific Google Drive file by ID, supporting files in shared drives. • Native Google Docs, Sheets, Slides → exported as text / CSV. • Office files (.docx, .xlsx, .pptx) → unzipped & parsed with std-lib to extract readable text. • Any other file → downloaded; tries UTF-8 decode, else notes binary.
| Parameter | Type | Description |
|---|---|---|
file_id * | string | Drive file ID. |
user_google_email * | string | The user’s Google email address. |
get_drive_file_download_url Get Drive File Download Url
Gets a download URL for a Google Drive file. The file is prepared and made available via HTTP URL. For Google native files (Docs, Sheets, Slides), exports to a useful format: • Google Docs → PDF (default) or DOCX if export_format='docx' • Google Sheets → XLSX (default), PDF if export_format='pdf', or CSV if export_format='csv' • Google Slides → PDF (default) or PPTX if export_format='pptx' For other files, downloads the original file format.
| Parameter | Type | Description |
|---|---|---|
file_id * | string | The Google Drive file ID to get a download URL for. |
user_google_email * | string | The user's Google email address. Required. |
export_format | Optional export format for Google native files. Options: 'pdf', 'docx', 'xlsx', 'csv', 'pptx'. If not specified, uses sensible defaults (PDF for Docs/Slides, XLSX for Sheets).… |
list_drive_items List Drive Items
Lists files and folders, supporting shared drives. If `drive_id` is specified, lists items within that shared drive. `folder_id` is then relative to that drive (or use drive_id as folder_id for root). If `drive_id` is not specified, lists items from user's "My Drive" and accessible shared drives (if `include_items_from_all_drives` is True).
| Parameter | Type | Description |
|---|---|---|
user_google_email * | string | The user's Google email address. Required. |
corpora | Corpus to query ('user', 'drive', 'allDrives'). If `drive_id` is set and `corpora` is None, 'drive' is used. If None and no `drive_id`, API defaults apply. | |
drive_id | ID of the shared drive. If provided, the listing is scoped to this drive. | |
folder_id | string | The ID of the Google Drive folder. Defaults to 'root'. For a shared drive, this can be the shared drive's ID to list its root, or a folder ID within that shared drive. |
include_items_from_all_drives | boolean | Whether items from all accessible shared drives should be included if `drive_id` is not set. Defaults to True. |
page_size | integer | The maximum number of items to return. Defaults to 100. |
create_drive_file Create Drive File
Creates a new file in Google Drive, supporting creation within shared drives. Accepts either direct content or a fileUrl to fetch the content from.
| Parameter | Type | Description |
|---|---|---|
file_name * | string | The name for the new file. |
user_google_email * | string | The user's Google email address. Required. |
content | If provided, the content to write to the file. | |
fileUrl | If provided, fetches the file content from this URL. Supports file://, http://, and https:// protocols. | |
folder_id | string | The ID of the parent folder. Defaults to 'root'. For shared drives, this must be a folder ID within the shared drive. |
mime_type | string | The MIME type of the file. Defaults to 'text/plain'. |
get_drive_file_permissions Get Drive File Permissions
Gets detailed metadata about a Google Drive file including sharing permissions.
| Parameter | Type | Description |
|---|---|---|
file_id * | string | The ID of the file to check permissions for. |
user_google_email * | string | The user's Google email address. Required. |
check_drive_file_public_access Check Drive File Public Access
Searches for a file by name and checks if it has public link sharing enabled.
| Parameter | Type | Description |
|---|---|---|
file_name * | string | The name of the file to check. |
user_google_email * | string | The user's Google email address. Required. |
update_drive_file Update Drive File
Updates metadata and properties of a Google Drive file.
| Parameter | Type | Description |
|---|---|---|
file_id * | string | The ID of the file to update. Required. |
user_google_email * | string | The user's Google email address. Required. |
add_parents | Comma-separated folder IDs to add as parents. | |
copy_requires_writer_permission | Whether copying requires writer permission. | |
description | New description for the file. | |
mime_type | New MIME type (note: changing type may require content upload). | |
name | New name for the file. | |
properties | Custom key-value properties for the file. | |
remove_parents | Comma-separated folder IDs to remove from parents. | |
starred | Whether to star/unstar the file. | |
trashed | Whether to move file to/from trash. | |
writers_can_share | Whether editors can share the file. |
update_drive_permission Update Drive Permission
Updates an existing permission on a Google Drive file or folder.
| Parameter | Type | Description |
|---|---|---|
file_id * | string | The ID of the file or folder. Required. |
permission_id * | string | The ID of the permission to update (from get_drive_file_permissions). Required. |
user_google_email * | string | The user's Google email address. Required. |
expiration_time | Expiration time in RFC 3339 format (e.g., "2025-01-15T00:00:00Z"). Set or update when permission expires. | |
role | New role - 'reader', 'commenter', or 'writer'. If not provided, role unchanged. |
remove_drive_permission Remove Drive Permission
Removes a permission from a Google Drive file or folder, revoking access.
| Parameter | Type | Description |
|---|---|---|
file_id * | string | The ID of the file or folder. Required. |
permission_id * | string | The ID of the permission to remove (from get_drive_file_permissions). Required. |
user_google_email * | string | The user's Google email address. Required. |
copy_drive_file Copy Drive File
Creates a copy of an existing Google Drive file. This tool copies the template document to a new location with an optional new name. The copy maintains all formatting and content from the original file.
| Parameter | Type | Description |
|---|---|---|
file_id * | string | The ID of the file to copy. Required. |
user_google_email * | string | The user's Google email address. Required. |
new_name | New name for the copied file. If not provided, uses "Copy of [original name]". | |
parent_folder_id | string | The ID of the folder where the copy should be created. Defaults to 'root' (My Drive). |
transfer_drive_ownership Transfer Drive Ownership
Transfers ownership of a Google Drive file or folder to another user. This is an irreversible operation. The current owner will become an editor. Only works within the same Google Workspace domain or for personal accounts.
| Parameter | Type | Description |
|---|---|---|
file_id * | string | The ID of the file or folder to transfer. Required. |
new_owner_email * | string | Email address of the new owner. Required. |
user_google_email * | string | The user's Google email address. Required. |
move_to_new_owners_root | boolean | If True, moves the file to the new owner's My Drive root. Defaults to False. |
list_calendars List Calendars
Retrieves a list of calendars accessible to the authenticated user.
| Parameter | Type | Description |
|---|---|---|
user_google_email * | string | The user's Google email address. Required. |
get_events Get Events
Retrieves events from a specified Google Calendar. Can retrieve a single event by ID or multiple events within a time range. You can also search for events by keyword by supplying the optional "query" param.
| Parameter | Type | Description |
|---|---|---|
user_google_email * | string | The user's Google email address. Required. |
calendar_id | string | The ID of the calendar to query. Use 'primary' for the user's primary calendar. Defaults to 'primary'. Calendar IDs can be obtained using `list_calendars`. |
detailed | boolean | Whether to return detailed event information including description, location, attendees, and attendee details (response status, organizer, optional flags). Defaults to False. |
event_id | The ID of a specific event to retrieve. If provided, retrieves only this event and ignores time filtering parameters. | |
include_attachments | boolean | Whether to include attachment information in detailed event output. When True, shows attachment details (fileId, fileUrl, mimeType, title) for events that have attachments. Only applies when detailed=… |
max_results | integer | The maximum number of events to return. Defaults to 25. Ignored if event_id is provided. |
query | A keyword to search for within event fields (summary, description, location). Ignored if event_id is provided. | |
time_max | The end of the time range (exclusive) in RFC3339 format. If omitted, events starting from `time_min` onwards are considered (up to `max_results`). Ignored if event_id is provided. | |
time_min | The start of the time range (inclusive) in RFC3339 format (e.g., '2024-05-12T10:00:00Z' or '2024-05-12'). If omitted, defaults to the current time. Ignored if event_id is provided. |
create_event Create Event
Creates a new event.
| Parameter | Type | Description |
|---|---|---|
end_time * | string | End time (RFC3339, e.g., "2023-10-27T11:00:00-07:00" or "2023-10-28" for all-day). |
start_time * | string | Start time (RFC3339, e.g., "2023-10-27T10:00:00-07:00" or "2023-10-27" for all-day). |
summary * | string | Event title. |
user_google_email * | string | The user's Google email address. Required. |
add_google_meet | boolean | Whether to add a Google Meet video conference to the event. Defaults to False. |
attachments | List of Google Drive file URLs or IDs to attach to the event. | |
attendees | Attendee email addresses. | |
calendar_id | string | Calendar ID (default: 'primary'). |
description | Event description. | |
guests_can_invite_others | Whether attendees other than the organizer can invite others to the event. Defaults to None (uses Google Calendar default of True). | |
guests_can_modify | Whether attendees other than the organizer can modify the event. Defaults to None (uses Google Calendar default of False). | |
guests_can_see_other_guests | Whether attendees other than the organizer can see who the event's attendees are. Defaults to None (uses Google Calendar default of True). | |
location | Event location. | |
reminders | JSON string or list of reminder objects. Each should have 'method' ("popup" or "email") and 'minutes' (0-40320). Max 5 reminders. Example: '[{"method": "popup", "minutes": 15}]' or [{"method": "popup"… | |
timezone | Timezone (e.g., "America/New_York"). | |
transparency | Event transparency for busy/free status. "opaque" shows as Busy (default), "transparent" shows as Available/Free. Defaults to None (uses Google Calendar default). | |
use_default_reminders | boolean | Whether to use calendar's default reminders. If False, uses custom reminders. Defaults to True. |
visibility | Event visibility. "default" uses calendar default, "public" is visible to all, "private" is visible only to attendees, "confidential" is same as private (legacy). Defaults to None (uses Google Calenda… |
modify_event Modify Event
Modifies an existing event.
| Parameter | Type | Description |
|---|---|---|
event_id * | string | The ID of the event to modify. |
user_google_email * | string | The user's Google email address. Required. |
add_google_meet | Whether to add or remove Google Meet video conference. If True, adds Google Meet; if False, removes it; if None, leaves unchanged. | |
attendees | Attendees as email strings or objects with metadata. Supports: ["email@example.com"] or [{"email": "email@example.com", "responseStatus": "accepted", "organizer": true, "optional": true}]. When using… | |
calendar_id | string | Calendar ID (default: 'primary'). |
color_id | Event color ID (1-11). If None, preserves existing color. | |
description | New event description. | |
end_time | New end time (RFC3339, e.g., "2023-10-27T11:00:00-07:00" or "2023-10-28" for all-day). | |
guests_can_invite_others | Whether attendees other than the organizer can invite others to the event. If None, preserves existing setting. | |
guests_can_modify | Whether attendees other than the organizer can modify the event. If None, preserves existing setting. | |
guests_can_see_other_guests | Whether attendees other than the organizer can see who the event's attendees are. If None, preserves existing setting. | |
location | New event location. | |
reminders | JSON string or list of reminder objects to replace existing reminders. Each should have 'method' ("popup" or "email") and 'minutes' (0-40320). Max 5 reminders. Example: '[{"method": "popup", "minutes"… | |
start_time | New start time (RFC3339, e.g., "2023-10-27T10:00:00-07:00" or "2023-10-27" for all-day). | |
summary | New event title. | |
timezone | New timezone (e.g., "America/New_York"). | |
transparency | Event transparency for busy/free status. "opaque" shows as Busy, "transparent" shows as Available/Free. If None, preserves existing transparency setting. | |
use_default_reminders | Whether to use calendar's default reminders. If specified, overrides current reminder settings. | |
visibility | Event visibility. "default" uses calendar default, "public" is visible to all, "private" is visible only to attendees, "confidential" is same as private (legacy). If None, preserves existing visibilit… |
delete_event Delete Event
Deletes an existing event.
| Parameter | Type | Description |
|---|---|---|
event_id * | string | The ID of the event to delete. |
user_google_email * | string | The user's Google email address. Required. |
calendar_id | string | Calendar ID (default: 'primary'). |
query_freebusy Query Freebusy
Returns free/busy information for a set of calendars.
| Parameter | Type | Description |
|---|---|---|
time_max * | string | The end of the interval for the query in RFC3339 format (e.g., '2024-05-12T18:00:00Z' or '2024-05-12'). |
time_min * | string | The start of the interval for the query in RFC3339 format (e.g., '2024-05-12T10:00:00Z' or '2024-05-12'). |
user_google_email * | string | The user's Google email address. Required. |
calendar_expansion_max | Maximum number of calendars for which FreeBusy information is to be provided. Optional. Maximum value is 50. | |
calendar_ids | List of calendar identifiers to query. If not provided, queries the primary calendar. Use 'primary' for the user's primary calendar or specific calendar IDs obtained from `list_calendars`. | |
group_expansion_max | Maximum number of calendar identifiers to be provided for a single group. Optional. An error is returned for a group with more members than this value. Maximum value is 100. |
search_docs Search Docs
Searches for Google Docs by name using Drive API (mimeType filter).
| Parameter | Type | Description |
|---|---|---|
query * | string | |
user_google_email * | string | |
page_size | integer |
get_doc_content Get Doc Content
Retrieves content of a Google Doc or a Drive file (like .docx) identified by document_id. - Native Google Docs: Fetches content via Docs API. - Office files (.docx, etc.) stored in Drive: Downloads via Drive API and extracts text.
| Parameter | Type | Description |
|---|---|---|
document_id * | string | |
user_google_email * | string |
list_docs_in_folder List Docs In Folder
Lists Google Docs within a specific Drive folder.
| Parameter | Type | Description |
|---|---|---|
user_google_email * | string | |
folder_id | string | |
page_size | integer |
create_doc Create Doc
Creates a new Google Doc and optionally inserts initial content.
| Parameter | Type | Description |
|---|---|---|
title * | string | |
user_google_email * | string | |
content | string |
modify_doc_text Modify Doc Text
Modifies text in a Google Doc - can insert/replace text and/or apply formatting in a single operation.
| Parameter | Type | Description |
|---|---|---|
document_id * | string | ID of the document to update |
start_index * | integer | Start position for operation (0-based) |
user_google_email * | string | User's Google email address |
background_color | string | Background/highlight color (#RRGGBB) |
bold | boolean | Whether to make text bold (True/False/None to leave unchanged) |
end_index | integer | End position for text replacement/formatting (if not provided with text, text is inserted) |
font_family | string | Font family name (e.g., "Arial", "Times New Roman") |
font_size | integer | Font size in points |
italic | boolean | Whether to make text italic (True/False/None to leave unchanged) |
text | string | New text to insert or replace with (optional - can format existing text without changing it) |
text_color | string | Foreground text color (#RRGGBB) |
underline | boolean | Whether to underline text (True/False/None to leave unchanged) |
find_and_replace_doc Find And Replace Doc
Finds and replaces text throughout a Google Doc.
| Parameter | Type | Description |
|---|---|---|
document_id * | string | ID of the document to update |
find_text * | string | Text to search for |
replace_text * | string | Text to replace with |
user_google_email * | string | User's Google email address |
match_case | boolean | Whether to match case exactly |
insert_doc_elements Insert Doc Elements
Inserts structural elements like tables, lists, or page breaks into a Google Doc.
| Parameter | Type | Description |
|---|---|---|
document_id * | string | ID of the document to update |
element_type * | string | Type of element to insert ("table", "list", "page_break") |
index * | integer | Position to insert element (0-based) |
user_google_email * | string | User's Google email address |
columns | integer | Number of columns for table (required for table) |
list_type | string | Type of list ("UNORDERED", "ORDERED") (required for list) |
rows | integer | Number of rows for table (required for table) |
text | string | Initial text content for list items |
insert_doc_image Insert Doc Image
Inserts an image into a Google Doc from Drive or a URL.
| Parameter | Type | Description |
|---|---|---|
document_id * | string | ID of the document to update |
image_source * | string | Drive file ID or public image URL |
index * | integer | Position to insert image (0-based) |
user_google_email * | string | User's Google email address |
height | integer | Image height in points (optional) |
width | integer | Image width in points (optional) |
batch_update_doc Batch Update Doc
Executes multiple document operations in a single atomic batch update.
| Parameter | Type | Description |
|---|---|---|
document_id * | string | ID of the document to update |
operations * | array | List of operation dictionaries. Each operation should contain: - type: Operation type ('insert_text', 'delete_text', 'replace_text', 'format_text', 'insert_table', 'insert_page_break') -… |
user_google_email * | string | User's Google email address |
inspect_doc_structure Inspect Doc Structure
Essential tool for finding safe insertion points and understanding document structure. USE THIS FOR: - Finding the correct index for table insertion - Understanding document layout before making changes - Locating existing tables and their positions - Getting document statistics and complexity info CRITICAL FOR TABLE OPERATIONS: ALWAYS call this BEFORE creating tables to get a safe insertion index. WHAT THE OUTPUT SHOWS: - total_elements: Number of document elements - total_length: Maximum safe index for insertion - tables: Number of existing tables - table_details: Position and dimensions…
| Parameter | Type | Description |
|---|---|---|
document_id * | string | ID of the document to inspect |
user_google_email * | string | User's Google email address |
detailed | boolean | Whether to return detailed structure information |
create_table_with_data Create Table With Data
Creates a table and populates it with data in one reliable operation. CRITICAL: YOU MUST CALL inspect_doc_structure FIRST TO GET THE INDEX! MANDATORY WORKFLOW - DO THESE STEPS IN ORDER: Step 1: ALWAYS call inspect_doc_structure first Step 2: Use the 'total_length' value from inspect_doc_structure as your index Step 3: Format data as 2D list: [["col1", "col2"], ["row1col1", "row1col2"]] Step 4: Call this function with the correct index and data EXAMPLE DATA FORMAT: table_data = [ ["Header1", "Header2", "Header3"], # Row 0 - headers ["Data1", "Data2", "Data3"], # Row 1 -…
| Parameter | Type | Description |
|---|---|---|
document_id * | string | ID of the document to update |
index * | integer | Document position (MANDATORY: get from inspect_doc_structure 'total_length') |
table_data * | array | 2D list of strings - EXACT format: [["col1", "col2"], ["row1col1", "row1col2"]] |
user_google_email * | string | User's Google email address |
bold_headers | boolean | Whether to make first row bold (default: true) |
debug_table_structure Debug Table Structure
ESSENTIAL DEBUGGING TOOL - Use this whenever tables don't work as expected. USE THIS IMMEDIATELY WHEN: - Table population put data in wrong cells - You get "table not found" errors - Data appears concatenated in first cell - Need to understand existing table structure - Planning to use populate_existing_table WHAT THIS SHOWS YOU: - Exact table dimensions (rows × columns) - Each cell's position coordinates (row,col) - Current content in each cell - Insertion indices for each cell - Table boundaries and ranges HOW TO READ THE OUTPUT: - "dimensions": "2x3" = 2 rows, 3 columns - "position": "(…
| Parameter | Type | Description |
|---|---|---|
document_id * | string | ID of the document to inspect |
user_google_email * | string | User's Google email address |
table_index | integer | Which table to debug (0 = first table, 1 = second table, etc.) |
export_doc_to_pdf Export Doc To Pdf
Exports a Google Doc to PDF format and saves it to Google Drive.
| Parameter | Type | Description |
|---|---|---|
document_id * | string | ID of the Google Doc to export |
user_google_email * | string | User's Google email address |
folder_id | string | Drive folder ID to save PDF in (optional - if not provided, saves in root) |
pdf_filename | string | Name for the PDF file (optional - if not provided, uses original name + "_PDF") |
read_document_comments Read Document Comments
Read all comments from a Google Document.
| Parameter | Type | Description |
|---|---|---|
document_id * | string | |
user_google_email * | string |
create_document_comment Create Document Comment
Create a new comment on a Google Document.
| Parameter | Type | Description |
|---|---|---|
comment_content * | string | |
document_id * | string | |
user_google_email * | string |
reply_to_document_comment Reply To Document Comment
Reply to a specific comment in a Google Document.
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | |
document_id * | string | |
reply_content * | string | |
user_google_email * | string |
resolve_document_comment Resolve Document Comment
Resolve a comment in a Google Document.
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | |
document_id * | string | |
user_google_email * | string |
list_spreadsheets List Spreadsheets
Lists spreadsheets from Google Drive that the user has access to.
| Parameter | Type | Description |
|---|---|---|
user_google_email * | string | The user's Google email address. Required. |
max_results | integer | Maximum number of spreadsheets to return. Defaults to 25. |
get_spreadsheet_info Get Spreadsheet Info
Gets information about a specific spreadsheet including its sheets.
| Parameter | Type | Description |
|---|---|---|
spreadsheet_id * | string | The ID of the spreadsheet to get info for. Required. |
user_google_email * | string | The user's Google email address. Required. |
read_sheet_values Read Sheet Values
Reads values from a specific range in a Google Sheet.
| Parameter | Type | Description |
|---|---|---|
spreadsheet_id * | string | The ID of the spreadsheet. Required. |
user_google_email * | string | The user's Google email address. Required. |
range_name | string | The range to read (e.g., "Sheet1!A1:D10", "A1:D10"). Defaults to "A1:Z1000". |
modify_sheet_values Modify Sheet Values
Modifies values in a specific range of a Google Sheet - can write, update, or clear values.
| Parameter | Type | Description |
|---|---|---|
range_name * | string | The range to modify (e.g., "Sheet1!A1:D10", "A1:D10"). Required. |
spreadsheet_id * | string | The ID of the spreadsheet. Required. |
user_google_email * | string | The user's Google email address. Required. |
clear_values | boolean | If True, clears the range instead of writing values. Defaults to False. |
value_input_option | string | How to interpret input values ("RAW" or "USER_ENTERED"). Defaults to "USER_ENTERED". |
values | 2D array of values to write/update. Can be a JSON string or Python list. Required unless clear_values=True. |
format_sheet_range Format Sheet Range
Applies formatting to a range: background/text color and number/date formats. Colors accept hex strings (#RRGGBB). Number formats follow Sheets types (e.g., NUMBER, NUMBER_WITH_GROUPING, CURRENCY, DATE, TIME, DATE_TIME, PERCENT, TEXT, SCIENTIFIC). If no sheet name is provided, the first sheet is used.
| Parameter | Type | Description |
|---|---|---|
range_name * | string | A1-style range (optionally with sheet name). Required. |
spreadsheet_id * | string | The ID of the spreadsheet. Required. |
user_google_email * | string | The user's Google email address. Required. |
background_color | Hex background color (e.g., "#FFEECC"). | |
number_format_pattern | Optional custom pattern for the number format. | |
number_format_type | Sheets number format type (e.g., "DATE"). | |
text_color | Hex text color (e.g., "#000000"). |
add_conditional_formatting Add Conditional Formatting
Adds a conditional formatting rule to a range.
| Parameter | Type | Description |
|---|---|---|
condition_type * | string | Sheets condition type (e.g., NUMBER_GREATER, TEXT_CONTAINS, DATE_BEFORE, CUSTOM_FORMULA). |
range_name * | string | A1-style range (optionally with sheet name). Required. |
spreadsheet_id * | string | The ID of the spreadsheet. Required. |
user_google_email * | string | The user's Google email address. Required. |
background_color | Hex background color to apply when condition matches. | |
condition_values | Values for the condition; accepts a list or a JSON string representing a list. Depends on condition_type. | |
gradient_points | List (or JSON list) of gradient points for a color scale. If provided, a gradient rule is created and boolean parameters are ignored. | |
rule_index | Optional position to insert the rule (0-based) within the sheet's rules. | |
text_color | Hex text color to apply when condition matches. |
update_conditional_formatting Update Conditional Formatting
Updates an existing conditional formatting rule by index on a sheet.
| Parameter | Type | Description |
|---|---|---|
rule_index * | integer | Index of the rule to update (0-based). |
spreadsheet_id * | string | The ID of the spreadsheet. Required. |
user_google_email * | string | The user's Google email address. Required. |
background_color | Hex background color when condition matches. | |
condition_type | Sheets condition type. If omitted, the existing rule's type is preserved. | |
condition_values | Values for the condition. | |
gradient_points | If provided, updates the rule to a gradient color scale using these points. | |
range_name | A1-style range to apply the updated rule (optionally with sheet name). If omitted, existing ranges are preserved. | |
sheet_name | Sheet name to locate the rule when range_name is omitted. Defaults to first sheet. | |
text_color | Hex text color when condition matches. |
delete_conditional_formatting Delete Conditional Formatting
Deletes an existing conditional formatting rule by index on a sheet.
| Parameter | Type | Description |
|---|---|---|
rule_index * | integer | Index of the rule to delete (0-based). |
spreadsheet_id * | string | The ID of the spreadsheet. Required. |
user_google_email * | string | The user's Google email address. Required. |
sheet_name | Name of the sheet that contains the rule. Defaults to the first sheet if not provided. |
create_spreadsheet Create Spreadsheet
Creates a new Google Spreadsheet.
| Parameter | Type | Description |
|---|---|---|
title * | string | The title of the new spreadsheet. Required. |
user_google_email * | string | The user's Google email address. Required. |
sheet_names | List of sheet names to create. If not provided, creates one sheet with default name. |
create_sheet Create Sheet
Creates a new sheet within an existing spreadsheet.
| Parameter | Type | Description |
|---|---|---|
sheet_name * | string | The name of the new sheet. Required. |
spreadsheet_id * | string | The ID of the spreadsheet. Required. |
user_google_email * | string | The user's Google email address. Required. |
read_spreadsheet_comments Read Spreadsheet Comments
Read all comments from a Google Spreadsheet.
| Parameter | Type | Description |
|---|---|---|
spreadsheet_id * | string | |
user_google_email * | string |
create_spreadsheet_comment Create Spreadsheet Comment
Create a new comment on a Google Spreadsheet.
| Parameter | Type | Description |
|---|---|---|
comment_content * | string | |
spreadsheet_id * | string | |
user_google_email * | string |
reply_to_spreadsheet_comment Reply To Spreadsheet Comment
Reply to a specific comment in a Google Spreadsheet.
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | |
reply_content * | string | |
spreadsheet_id * | string | |
user_google_email * | string |
resolve_spreadsheet_comment Resolve Spreadsheet Comment
Resolve a comment in a Google Spreadsheet.
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | |
spreadsheet_id * | string | |
user_google_email * | string |
list_spaces List Spaces
Lists Google Chat spaces (rooms and direct messages) accessible to the user.
| Parameter | Type | Description |
|---|---|---|
user_google_email * | string | |
page_size | integer | |
space_type | string |
get_messages Get Messages
Retrieves messages from a Google Chat space.
| Parameter | Type | Description |
|---|---|---|
space_id * | string | |
user_google_email * | string | |
order_by | string | |
page_size | integer |
send_message Send Message
Sends a message to a Google Chat space.
| Parameter | Type | Description |
|---|---|---|
message_text * | string | |
space_id * | string | |
user_google_email * | string | |
thread_key |
search_messages Search Messages
Searches for messages in Google Chat spaces by text content.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
user_google_email * | string | |
page_size | integer | |
space_id |
create_form Create Form
Create a new form using the title given in the provided form message in the request.
| Parameter | Type | Description |
|---|---|---|
title * | string | The title of the form. |
user_google_email * | string | The user's Google email address. Required. |
description | The description of the form. | |
document_title | The document title (shown in browser tab). |
get_form Get Form
Get a form.
| Parameter | Type | Description |
|---|---|---|
form_id * | string | The ID of the form to retrieve. |
user_google_email * | string | The user's Google email address. Required. |
set_publish_settings Set Publish Settings
Updates the publish settings of a form.
| Parameter | Type | Description |
|---|---|---|
form_id * | string | The ID of the form to update publish settings for. |
user_google_email * | string | The user's Google email address. Required. |
publish_as_template | boolean | Whether to publish as a template. Defaults to False. |
require_authentication | boolean | Whether to require authentication to view/submit. Defaults to False. |
get_form_response Get Form Response
Get one response from the form.
| Parameter | Type | Description |
|---|---|---|
form_id * | string | The ID of the form. |
response_id * | string | The ID of the response to retrieve. |
user_google_email * | string | The user's Google email address. Required. |
list_form_responses List Form Responses
List a form's responses.
| Parameter | Type | Description |
|---|---|---|
form_id * | string | The ID of the form. |
user_google_email * | string | The user's Google email address. Required. |
page_size | integer | Maximum number of responses to return. Defaults to 10. |
page_token | Token for retrieving next page of results. |
batch_update_form Batch Update Form
Apply batch updates to a Google Form. Supports adding, updating, and deleting form items, as well as updating form metadata and settings. This is the primary method for modifying form content after creation.
| Parameter | Type | Description |
|---|---|---|
form_id * | string | The ID of the form to update. |
requests * | array | List of update requests to apply. Supported request types: - createItem: Add a new question or content item - updateItem: Modify an existing item - deleteItem: Remove an item - moveItem: Reorder an it… |
user_google_email * | string | The user's Google email address. Required. |
create_presentation Create Presentation
Create a new Google Slides presentation.
| Parameter | Type | Description |
|---|---|---|
user_google_email * | string | The user's Google email address. Required. |
title | string | The title for the new presentation. Defaults to "Untitled Presentation". |
get_presentation Get Presentation
Get details about a Google Slides presentation.
| Parameter | Type | Description |
|---|---|---|
presentation_id * | string | The ID of the presentation to retrieve. |
user_google_email * | string | The user's Google email address. Required. |
batch_update_presentation Batch Update Presentation
Apply batch updates to a Google Slides presentation.
| Parameter | Type | Description |
|---|---|---|
presentation_id * | string | The ID of the presentation to update. |
requests * | array | List of update requests to apply. |
user_google_email * | string | The user's Google email address. Required. |
get_page Get Page
Get details about a specific page (slide) in a presentation.
| Parameter | Type | Description |
|---|---|---|
page_object_id * | string | The object ID of the page/slide to retrieve. |
presentation_id * | string | The ID of the presentation. |
user_google_email * | string | The user's Google email address. Required. |
get_page_thumbnail Get Page Thumbnail
Generate a thumbnail URL for a specific page (slide) in a presentation.
| Parameter | Type | Description |
|---|---|---|
page_object_id * | string | The object ID of the page/slide. |
presentation_id * | string | The ID of the presentation. |
user_google_email * | string | The user's Google email address. Required. |
thumbnail_size | string | Size of thumbnail ("LARGE", "MEDIUM", "SMALL"). Defaults to "MEDIUM". |
read_presentation_comments Read Presentation Comments
Read all comments from a Google Presentation.
| Parameter | Type | Description |
|---|---|---|
presentation_id * | string | |
user_google_email * | string |
create_presentation_comment Create Presentation Comment
Create a new comment on a Google Presentation.
| Parameter | Type | Description |
|---|---|---|
comment_content * | string | |
presentation_id * | string | |
user_google_email * | string |
reply_to_presentation_comment Reply To Presentation Comment
Reply to a specific comment in a Google Presentation.
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | |
presentation_id * | string | |
reply_content * | string | |
user_google_email * | string |
resolve_presentation_comment Resolve Presentation Comment
Resolve a comment in a Google Presentation.
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | |
presentation_id * | string | |
user_google_email * | string |
list_task_lists List Task Lists
List all task lists for the user.
| Parameter | Type | Description |
|---|---|---|
user_google_email * | string | The user's Google email address. Required. |
max_results | integer | Maximum number of task lists to return (default: 1000, max: 1000). |
page_token | Token for pagination. |
get_task_list Get Task List
Get details of a specific task list.
| Parameter | Type | Description |
|---|---|---|
task_list_id * | string | The ID of the task list to retrieve. |
user_google_email * | string | The user's Google email address. Required. |
create_task_list Create Task List
Create a new task list.
| Parameter | Type | Description |
|---|---|---|
title * | string | The title of the new task list. |
user_google_email * | string | The user's Google email address. Required. |
update_task_list Update Task List
Update an existing task list.
| Parameter | Type | Description |
|---|---|---|
task_list_id * | string | The ID of the task list to update. |
title * | string | The new title for the task list. |
user_google_email * | string | The user's Google email address. Required. |
delete_task_list Delete Task List
Delete a task list. Note: This will also delete all tasks in the list.
| Parameter | Type | Description |
|---|---|---|
task_list_id * | string | The ID of the task list to delete. |
user_google_email * | string | The user's Google email address. Required. |
list_tasks List Tasks
List all tasks in a specific task list.
| Parameter | Type | Description |
|---|---|---|
task_list_id * | string | The ID of the task list to retrieve tasks from. |
user_google_email * | string | The user's Google email address. Required. |
completed_max | Upper bound for completion date (RFC 3339 timestamp). | |
completed_min | Lower bound for completion date (RFC 3339 timestamp). | |
due_max | Upper bound for due date (RFC 3339 timestamp). | |
due_min | Lower bound for due date (RFC 3339 timestamp). | |
max_results | integer | Maximum number of tasks to return. (default: 20, max: 10000). |
page_token | Token for pagination. | |
show_assigned | boolean | Whether to include assigned tasks (default: False). |
show_completed | boolean | Whether to include completed tasks (default: True). Note that show_hidden must also be true to show tasks completed in first party clients, such as the web UI and Google's mobile apps. |
show_deleted | boolean | Whether to include deleted tasks (default: False). |
show_hidden | boolean | Whether to include hidden tasks (default: False). |
updated_min | Lower bound for last modification time (RFC 3339 timestamp). |
get_task Get Task
Get details of a specific task.
| Parameter | Type | Description |
|---|---|---|
task_id * | string | The ID of the task to retrieve. |
task_list_id * | string | The ID of the task list containing the task. |
user_google_email * | string | The user's Google email address. Required. |
create_task Create Task
Create a new task in a task list.
| Parameter | Type | Description |
|---|---|---|
task_list_id * | string | The ID of the task list to create the task in. |
title * | string | The title of the task. |
user_google_email * | string | The user's Google email address. Required. |
due | Due date in RFC 3339 format (e.g., "2024-12-31T23:59:59Z"). | |
notes | Notes/description for the task. | |
parent | Parent task ID (for subtasks). | |
previous | Previous sibling task ID (for positioning). |
update_task Update Task
Update an existing task.
| Parameter | Type | Description |
|---|---|---|
task_id * | string | The ID of the task to update. |
task_list_id * | string | The ID of the task list containing the task. |
user_google_email * | string | The user's Google email address. Required. |
due | New due date in RFC 3339 format. | |
notes | New notes/description for the task. | |
status | New status ("needsAction" or "completed"). | |
title | New title for the task. |
delete_task Delete Task
Delete a task from a task list.
| Parameter | Type | Description |
|---|---|---|
task_id * | string | The ID of the task to delete. |
task_list_id * | string | The ID of the task list containing the task. |
user_google_email * | string | The user's Google email address. Required. |
move_task Move Task
Move a task to a different position or parent within the same list, or to a different list.
| Parameter | Type | Description |
|---|---|---|
task_id * | string | The ID of the task to move. |
task_list_id * | string | The ID of the current task list containing the task. |
user_google_email * | string | The user's Google email address. Required. |
destination_task_list | Destination task list ID (for moving between lists). | |
parent | New parent task ID (for making it a subtask). | |
previous | Previous sibling task ID (for positioning). |
clear_completed_tasks Clear Completed Tasks
Clear all completed tasks from a task list. The tasks will be marked as hidden.
| Parameter | Type | Description |
|---|---|---|
task_list_id * | string | The ID of the task list to clear completed tasks from. |
user_google_email * | string | The user's Google email address. Required. |
search_custom Search Custom
Performs a search using Google Custom Search JSON API.
| Parameter | Type | Description |
|---|---|---|
q * | string | The search query. Required. |
user_google_email * | string | The user's Google email address. Required. |
country | Country code for results (e.g., "countryUS"). | |
date_restrict | Restrict results by date (e.g., "d5" for past 5 days, "m3" for past 3 months). | |
file_type | Filter by file type (e.g., "pdf", "doc"). | |
language | Language code for results (e.g., "lang_en"). | |
num | integer | Number of results to return (1-10). Defaults to 10. |
safe | string | Safe search level. Defaults to "off". |
search_type | Search for images if set to "image". | |
site_search | Restrict search to a specific site/domain. | |
site_search_filter | Exclude ("e") or include ("i") site_search results. | |
start | integer | The index of the first result to return (1-based). Defaults to 1. |
get_search_engine_info Get Search Engine Info
Retrieves metadata about a Programmable Search Engine.
| Parameter | Type | Description |
|---|---|---|
user_google_email * | string | The user's Google email address. Required. |
search_custom_siterestrict Search Custom Siterestrict
Performs a search restricted to specific sites using Google Custom Search.
| Parameter | Type | Description |
|---|---|---|
q * | string | The search query. Required. |
sites * | array | List of sites/domains to search within. |
user_google_email * | string | The user's Google email address. Required. |
num | integer | Number of results to return (1-10). Defaults to 10. |
safe | string | Safe search level. Defaults to "off". |
start | integer | The index of the first result to return (1-based). Defaults to 1. |
list_script_projects List Script Projects
Lists Google Apps Script projects accessible to the user. Uses Drive API to find Apps Script files.
| Parameter | Type | Description |
|---|---|---|
user_google_email * | string | User's email address |
page_size | integer | Number of results per page (default: 50) |
page_token | Token for pagination (optional) |
get_script_project Get Script Project
Retrieves complete project details including all source files.
| Parameter | Type | Description |
|---|---|---|
script_id * | string | The script project ID |
user_google_email * | string | User's email address |
get_script_content Get Script Content
Retrieves content of a specific file within a project.
| Parameter | Type | Description |
|---|---|---|
file_name * | string | Name of the file to retrieve |
script_id * | string | The script project ID |
user_google_email * | string | User's email address |
create_script_project Create Script Project
Creates a new Apps Script project.
| Parameter | Type | Description |
|---|---|---|
title * | string | Project title |
user_google_email * | string | User's email address |
parent_id | Optional Drive folder ID or bound container ID |
update_script_content Update Script Content
Updates or creates files in a script project.
| Parameter | Type | Description |
|---|---|---|
files * | array | List of file objects with name, type, and source |
script_id * | string | The script project ID |
user_google_email * | string | User's email address |
run_script_function Run Script Function
Executes a function in a deployed script.
| Parameter | Type | Description |
|---|---|---|
function_name * | string | Name of function to execute |
script_id * | string | The script project ID |
user_google_email * | string | User's email address |
dev_mode | boolean | Whether to run latest code vs deployed version |
parameters | Optional list of parameters to pass |
create_deployment Create Deployment
Creates a new deployment of the script.
| Parameter | Type | Description |
|---|---|---|
description * | string | Deployment description |
script_id * | string | The script project ID |
user_google_email * | string | User's email address |
version_description | Optional version description |
list_deployments List Deployments
Lists all deployments for a script project.
| Parameter | Type | Description |
|---|---|---|
script_id * | string | The script project ID |
user_google_email * | string | User's email address |
update_deployment Update Deployment
Updates an existing deployment configuration.
| Parameter | Type | Description |
|---|---|---|
deployment_id * | string | The deployment ID to update |
script_id * | string | The script project ID |
user_google_email * | string | User's email address |
description | Optional new description |
delete_deployment Delete Deployment
Deletes a deployment.
| Parameter | Type | Description |
|---|---|---|
deployment_id * | string | The deployment ID to delete |
script_id * | string | The script project ID |
user_google_email * | string | User's email address |
list_script_processes List Script Processes
Lists recent execution processes for user's scripts.
| Parameter | Type | Description |
|---|---|---|
user_google_email * | string | User's email address |
page_size | integer | Number of results (default: 50) |
script_id | Optional filter by script ID |
delete_script_project Delete Script Project
Deletes an Apps Script project. This permanently deletes the script project. The action cannot be undone.
| Parameter | Type | Description |
|---|---|---|
script_id * | string | The script project ID to delete |
user_google_email * | string | User's email address |
list_versions List Versions
Lists all versions of a script project. Versions are immutable snapshots of your script code. They are created when you deploy or explicitly create a version.
| Parameter | Type | Description |
|---|---|---|
script_id * | string | The script project ID |
user_google_email * | string | User's email address |
create_version Create Version
Creates a new immutable version of a script project. Versions capture a snapshot of the current script code. Once created, versions cannot be modified.
| Parameter | Type | Description |
|---|---|---|
script_id * | string | The script project ID |
user_google_email * | string | User's email address |
description | Optional description for this version |
get_version Get Version
Gets details of a specific version.
| Parameter | Type | Description |
|---|---|---|
script_id * | string | The script project ID |
user_google_email * | string | User's email address |
version_number * | integer | The version number to retrieve (1, 2, 3, etc.) |
get_script_metrics Get Script Metrics
Gets execution metrics for a script project. Returns analytics data including active users, total executions, and failed executions over time.
| Parameter | Type | Description |
|---|---|---|
script_id * | string | The script project ID |
user_google_email * | string | User's email address |
metrics_granularity | string | Granularity of metrics - "DAILY" or "WEEKLY" |
generate_trigger_code Generate Trigger Code
Generates Apps Script code for creating triggers. The Apps Script API cannot create triggers directly - they must be created from within Apps Script itself. This tool generates the code you need.
| Parameter | Type | Description |
|---|---|---|
function_name * | string | The function to run when trigger fires (e.g., "sendDailyReport") |
trigger_type * | string | Type of trigger. One of: - "time_minutes" (run every N minutes: 1, 5, 10, 15, 30) - "time_hours" (run every N hours: 1, 2, 4, 6, 8, 12) - "time_daily" (run daily at a spe… |
schedule | string | Schedule details (depends on trigger_type): - For time_minutes: "1", "5", "10", "15", or "30" - For time_hours: "1", "2", "4", "6", "8", or "12" - For time_daily: hour as "0"-"23" (e… |