Reference
Remy Reference/agent/searchGmailEmails
?

searchGmailEmails

Search for emails in the connected Gmail account using a Gmail search query. To list recent inbox emails, pass an empty query string.
mindstudio.searchGmailEmails({ query, exportType, limit }) → Result

Searches the connected Gmail account with a Gmail search query, or lists recent inbox mail when the query is empty — the way to find the messages you will then read or reply to.

Parameters
query
string
RequiredGmail search query (e.g. "from:user@example.com", "subject:invoice", "is:unread")
connectionId
string
Google OAuth connection ID
exportType
string
RequiredFormat for the variable output: "json" or "text"
jsontext
limit
string
RequiredMaximum number of emails to return (1-10, default: 5)
Call from a method
import { mindstudio } from '@mindstudio-ai/agent';

const result = await mindstudio.searchGmailEmails({
  query: /* ... */,
  exportType: /* ... */,
  limit: /* ... */
});