Back to Content

tabGroups.get

files/en-us/mozilla/add-ons/webextensions/api/tabgroups/get/index.md

latest539 B
Original Source

Returns details about a tab group.

Syntax

js-nolint
let tabGroupDetails = await browser.tabGroups.get(
    groupId                // integer
);

Parameters

  • groupId
    • : integer. The ID of the tab group to return details for.

Return value

A Promise fulfilled with a {{WebExtAPIRef("tabGroups.TabGroup")}} object. If the request fails, the promise is rejected with an error message.

{{WebExtExamples("h2")}}

Browser compatibility

{{Compat}}