Prerequisites
1
Install googleapis
2
Create OAuth2 Credentials
Go to Google Cloud Console, enable the Gmail API, and create OAuth2 credentials. Download
credentials.json.3
Generate Token
Run the Google OAuth flow to generate
token.json. See the Gmail API quickstart.4
Set Environment Variables
Quick Start
Config
Tools
Search Query Examples
Thegmail_search tool accepts Gmail search syntax: