tabs_group
Groups existing Firefox tabs into a new or existing tab group, optionally setting the group title and color.
Instructions
Group existing tabs, optionally setting the group's title and colour
Never activates a tab or focuses a window. Requires Firefox 139+. Omit group_id to create a group in the first tab's window, which moves tabs from other windows into it; pass a group_id from tabs_groups_query to add tabs to that group instead. Firefox unpins a pinned tab before grouping it, and refuses to mix private and non-private tabs.
Grouping and styling are separate steps in Firefox. If the tabs were grouped but the title or colour could not be set, the result still names the group, and tabs_groups_update can retry the styling.
profile_id is required: obtain it from profiles_list. All object IDs are local to that profile; never reuse them in another profile.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | blue, cyan, grey, green, orange, pink, purple, red or yellow. Omit to leave as is. | |
| title | No | Group title; an empty string clears it. Omit to leave as is. | |
| tab_ids | Yes | Tab ID, or several as a list (`[12, 15]`) or a JSON string (`"[12, 15]"`). | |
| group_id | No | Group to add the tabs to; omit it to create a new group. | |
| profile_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |