Google Super

GOOGLESUPER_ADD_LABEL_TO_EMAIL

Adds and/or removes specified Gmail labels for a message; ensure `message_id` and all `label_ids` are valid (use 'listLabels' for custom label IDs).

Remote googlesuper

Other tools also called GOOGLESUPER_ADD_LABEL_TO_EMAIL? See providers with this name

Input Schema


            {
  "type": "object",
  "properties": {
    "user_id": {
      "type": "string",
      "title": "User Id",
      "default": "me",
      "examples": [
        "me",
        "[email protected]"
      ],
      "description": "User's email address or 'me' for the authenticated user."
    },
    "message_id": {
      "type": "string",
      "title": "Message Id",
      "examples": [
        "17f1b2b9c1b2a3d4"
      ],
      "description": "Immutable ID of the message to modify (e.g., from 'fetchEmails' or 'fetchMessagesByThreadId')."
    },
    "add_label_ids": {
      "type": "array",
      "items": {
        "type": "string",
        "properties": {}
      },
      "title": "Add Label Ids",
      "default": [],
      "examples": [
        "STARRED",
        "IMPORTANT",
        "Label_123"
      ],
      "description": "Label IDs to add. For custom labels, obtain IDs via 'listLabels'. System labels (e.g., 'INBOX', 'SPAM', 'STARRED', 'IMPORTANT') can be used, but immutable system labels like 'DRAFT' and 'SENT' cannot be added or removed."
    },
    "remove_label_ids": {
      "type": "array",
      "items": {
        "type": "string",
        "properties": {}
      },
      "title": "Remove Label Ids",
      "default": [],
      "examples": [
        "UNREAD",
        "Label_456"
      ],
      "description": "Label IDs to remove. For custom labels, obtain IDs via 'listLabels'. System labels can be used, but immutable system labels like 'DRAFT' and 'SENT' cannot be added or removed via messages.modify."
    }
  }
}