Add or remove a toolbar widget
browser_set_toolbar_widgetMove a toolbar widget into a specified area or remove it from its current location, applying changes immediately to the running Firefox instance.
Instructions
Move a widget into a toolbar area, or remove it from wherever it is (CustomizableUI.addWidgetToArea / removeWidgetFromArea). MEASURED: the CustomizableUI route applies immediately to the running browser, unlike editing browser.uiCustomization.state directly, which needs a restart. Get ids from browser_get_toolbar_layout or browser_toolbar_widgets, and note the layout so you can undo it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"widget": "<widget>"
},
"name": "browser_set_toolbar_widget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | No | Target area, e.g. "nav-bar" or "TabsToolbar" (required unless remove is true) | |
| remove | No | Remove the widget from its current area instead of adding it | |
| widget | Yes | Widget id, e.g. "downloads-button" |