Raw Gmail API call
raw_requestCall any Gmail API v1 endpoint directly to handle requests the typed tools don't cover, such as downloading attachments, syncing history, or updating settings.
Instructions
Escape hatch to call any Gmail API v1 path directly, for requests the typed tools don't cover — e.g. downloading attachment content ("gmail/v1/users/me/messages//attachments/", returns base64url data), history.list for incremental sync ("gmail/v1/users/me/history?startHistoryId=..."), batchModify, or settings endpoints (filters, forwarding, vacation). The path may carry a query string. The Bearer token is added automatically; the method defaults to GET. CAUTION: this bypasses the typed tools' guard rails — users/me/messages/ DELETE is a PERMANENT delete that skips the trash (needs the full https://mail.google.com/ scope); prefer manage_trash.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON request body (POST/PUT/PATCH). | |
| path | Yes | API path relative to https://gmail.googleapis.com, e.g. "gmail/v1/users/me/history?startHistoryId=123". | |
| method | No | HTTP method. Defaults to GET. |