Gmail

GMAIL_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 gmail

Other tools also called GMAIL_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') can also be used."
    },
    "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 also be used."
    }
  }
}
          

Provider

Gmail →