Gmail

Gmail_ChangeThreadLabels

Add and remove labels on every message in a thread using the Gmail API. Use this to change a whole conversation at once (for example, marking a thread read by removing "UNREAD") instead of modifying each message. Label names match case-insensitively when there is no exact match. The confirmation reflects the labels actually present across the thread after the change, not the requested input.

Remote gmail

Remote (network-hosted)

Other tools also called Gmail_ChangeThreadLabels? See providers with this name

Input Schema


            {
  "type": "object",
  "properties": {
    "thread_id": {
      "type": "string",
      "description": "The ID of the thread to modify labels for"
    },
    "labels_to_add": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Label names to add to every message. Pass an empty list to only remove labels."
    },
    "labels_to_remove": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Label names to remove from every message. Pass an empty list to only add labels."
    }
  }
}
          

Provider

Gmail →