Get Gmail attachment
Action ID:tools.gmail.get_attachment
Download an attachment from a Gmail message.
Secrets
Required secrets:google_gmail_oauth: OAuth tokenGOOGLE_GMAIL_USER_TOKEN.
Input fields
The attachment ID to retrieve
The message ID containing the attachment
User ID or ‘me’ for authenticated userDefault:
"me".Get Gmail message
Action ID:tools.gmail.get_message
Get the full content of a Gmail message.
Secrets
Required secrets:google_gmail_oauth: OAuth tokenGOOGLE_GMAIL_USER_TOKEN.
Input fields
The message ID to retrieve
Format: ‘full’ (complete), ‘metadata’ (headers only), ‘minimal’ (IDs only), ‘raw’ (RFC 2822)Default:
"full".User ID or ‘me’ for authenticated userDefault:
"me".Get Gmail message headers
Action ID:tools.gmail.get_message_headers
Get only the headers of a Gmail message.
Secrets
Required secrets:google_gmail_oauth: OAuth tokenGOOGLE_GMAIL_USER_TOKEN.
Input fields
The message ID to retrieve headers for
Specific headers to return (e.g., [‘From’, ‘To’, ‘Subject’]). If not specified, returns all headers.Default:
null.User ID or ‘me’ for authenticated userDefault:
"me".Get Gmail thread
Action ID:tools.gmail.get_thread
Get all messages in an email thread.
Secrets
Required secrets:google_gmail_oauth: OAuth tokenGOOGLE_GMAIL_USER_TOKEN.
Input fields
The thread ID to retrieve
Format: ‘full’ (complete), ‘metadata’ (headers only), ‘minimal’ (IDs only)Default:
"full".User ID or ‘me’ for authenticated userDefault:
"me".List Gmail labels
Action ID:tools.gmail.list_labels
List all Gmail labels for a user.
Secrets
Required secrets:google_gmail_oauth: OAuth tokenGOOGLE_GMAIL_USER_TOKEN.
Input fields
User ID or ‘me’ for authenticated userDefault:
"me".Search Gmail messages
Action ID:tools.gmail.search_messages
Search Gmail messages using Gmail’s search syntax.
Secrets
Required secrets:google_gmail_oauth: OAuth tokenGOOGLE_GMAIL_USER_TOKEN.
Input fields
Gmail search query (e.g., ‘from:suspicious@evil.com has:attachment’)
Maximum number of results to returnDefault:
10.Page token for paginationDefault:
null.User ID or ‘me’ for authenticated userDefault:
"me".