Possible to create tab groups in an addon

I have never made an addon before, but would it be possible to create one, which could add a right click menu to a tab with an option “Create custom tab group”, which takes info from the site title and uses that to create a tab group with a certain name. For example, I have a page with title:
“Task 43058” And I want the custom option to create a tab group with name 43058. Would this be possible?

It sounds possible.
You can create context menu items in the tab context:

You can create new group from existing tabs:

And then you can update the group by setting a new title:

Also make sure to set strict_min_version to 139 to prevent old Firefox ESR users from installing your addon.