Reference
Remy Reference/agent/updateGmailLabels
?

updateGmailLabels

Add or remove labels on Gmail messages, identified by message IDs or a search query.
mindstudio.updateGmailLabels({ query, messageIds, addLabelIds, removeLabelIds }) → Result

Add or remove labels on Gmail messages, identified by message IDs or a search query.

Parameters
query
string
RequiredGmail search query to find messages (alternative to messageIds)
connectionId
string
Google OAuth connection ID
messageIds
string
RequiredComma-separated message IDs to target (alternative to query)
addLabelIds
string
RequiredComma-separated label names or IDs to add
removeLabelIds
string
RequiredComma-separated label names or IDs to remove
Call from a method
import { mindstudio } from '@mindstudio-ai/agent';

const result = await mindstudio.updateGmailLabels({
  query: /* ... */,
  messageIds: /* ... */,
  addLabelIds: /* ... */,
  removeLabelIds: /* ... */
});