firefox-css-theme

v0.3.5
io.github.easonwong-de/firefox-css-theme Checked 4 days ago Published 1 month ago

MCP for building, inspecting, and live-debugging Firefox CSS themes.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

launch_browser

Launch a Firefox instance with chrome debugging capabilities enabled.

ParameterTypeDescription
binaryPathstringOptional path to the Firefox executable binary.
headlessbooleanOptional flag to run Firefox in headless mode.
noToolboxbooleanOptional flag to disable opening the Browser Toolbox.
profileNamestringOptional name of an existing Firefox profile. If omitted, uses an isolated temporary profile.
toolboxbooleanOptional flag to open the Browser Toolbox. Defaults to true unless headless.

close_browser

Close the running Firefox instance.

customize_toolbar

Activate or manage the Firefox Customise Toolbar mode in the browser chrome.

ParameterTypeDescription
actionstringAction to perform for customise toolbar mode ('enter' or 'exit'). Defaults to 'enter'.

get_ui_tree

Retrieve the hierarchical DOM tree of the selected UI element in the Firefox chrome window.

ParameterTypeDescription
maxDepthnumberMaximum recursive depth to traverse.
rootSelectorstringCSS selector for the root element.

query_ui_elements

Find elements in the Firefox UI chrome document matching a CSS selector.

ParameterTypeDescription
selector *stringCSS selector to query in the chrome document (e.g. '#nav-bar', '#TabsToolbar').

get_computed_styles

Extract computed CSS property values for a Firefox UI chrome element.

ParameterTypeDescription
selector *stringCSS selector of the UI element (e.g. '#urlbar-background').
propertiesarrayOptional list of specific CSS property names.

inject_theme_css

Inject or replace a live stylesheet into the Firefox window.

ParameterTypeDescription
css *stringCSS rules to inject.
target *stringTarget scope: chrome for browser UI, or content for web pages.
idstringIdentifier for the stylesheet.

remove_theme_css

Remove an injected stylesheet from the Firefox window.

ParameterTypeDescription
id *stringIdentifier of the stylesheet to remove.
target *stringTarget scope of the stylesheet to remove: chrome or content.

list_theme_css

List all custom stylesheets currently injected into the Firefox window.

ParameterTypeDescription
target *stringTarget scope to list: chrome or content.

take_ui_screenshot

Capture a PNG screenshot of the Firefox browser chrome window or a specific UI component.

ParameterTypeDescription
selectorstringOptional CSS selector to screenshot a specific element.

execute_chrome_javascript

Execute privileged JavaScript code in the Firefox chrome window context.

ParameterTypeDescription
script *stringJavaScript code string to evaluate in the chrome context.