App Logo
mail.google.com

Search Gmail

Search the signed-in Gmail with the native query syntax (from:, to:, subject:, has:attachment, after:/before:, labels…) and return matching threads: threadId (feed it to get_thread / reply_to_email), sender, senderEmail, subject, snippet, date, unread, starred, hasAttachment. Results are threads rather than individual messages, which is Gmail's own search granularity, and only the first page of results is returned (up to 50).

Input

query required

Gmail search query, native syntax (e.g. "from:github.com has:attachment after:2026/06/01").

limit optional

Max threads to return (first results page only, ≤50).

Default: 20
account optional

Google account email to act as (authuser=). Without it Gmail picks u/0, which is NOT deterministic when several accounts share the browser's cookie jar.

Output

n required
query required
emails required

Start building not clicking