Loading...
Loading...
Manage emails across multiple Gmail accounts with unified tooling. Use when user asks to check email, read inbox, label emails, archive messages, or manage Gmail across accounts.
npx skill4agent add aiagentwithdhruv/skills gmail-inbox./scripts/gmail_unified.py./scripts/gmail_multi_auth.py./scripts/gmail_bulk_label.py./scripts/gmail_create_filters.py./scripts/gmail_auth.py# Check unread across all accounts
python3 ./scripts/gmail_unified.py --query "is:unread" --limit 50
# Check specific account only
python3 ./scripts/gmail_unified.py --query "is:unread" --account yourcompany
# List registered accounts
python3 ./scripts/gmail_unified.py --accounts
# Label and archive emails
python3 ./scripts/gmail_unified.py --query "from:notifications@" --label "Notifications" --archive
# Mark as read
python3 ./scripts/gmail_unified.py --query "from:noreply@" --mark-read
# Dry run (preview)
python3 ./scripts/gmail_unified.py --query "subject:invoice" --label "Invoices" --dry-run| Account | Credentials | Token | |
|---|---|---|---|
| youruser | you@example.com | credentials.json | token_youruser.json |
| yourcompany | you@yourdomain.com | credentials_yourcompany.json | token_yourcompany.json |
python3 ./scripts/gmail_multi_auth.py --account yourcompany --email you@yourdomain.comrm token_youruser.json
python3 ./scripts/gmail_multi_auth.py --account youruser --email you@example.comgmail.modifygmail.labelsgmail.settings.basicspreadsheetsdrivecredentials.jsoncredentials_yourcompany.jsontoken_*.jsongmail_accounts.json| Name | Type | Required | Description |
|---|---|---|---|
| string | No | Gmail search query (e.g., 'is:unread') |
| string | No | Specific account name from registry |
| integer | No | Max emails to fetch (default: 50) |
| Name | Type | Description |
|---|---|---|
| array | List of email objects with subject, from, date, snippet |
| Name | Source |
|---|---|
| file |
| file (auto-generated) |
gmail-labelinstantly-autoreply