> ## Documentation Index
> Fetch the complete documentation index at: https://docs.macro.com/llms.txt
> Use this file to discover all available pages before exploring further.

# UpdateThreadLabels

> Generated from the Macro Rust tool registry.

# UpdateThreadLabels

Generated from the Macro Rust tool registry.

## Parameters

| Parameter   | Type    | Required | Description                                                                  |
| ----------- | ------- | -------- | ---------------------------------------------------------------------------- |
| `add`       | boolean | Yes      | Whether to add (true) or remove (false) the label.                           |
| `label_id`  | string  | Yes      | The ID of the label to add or remove. Use ListLabels to get valid label IDs. |
| `thread_id` | string  | Yes      | The ID of the email thread to modify.                                        |
