About MCP
MCP is an MCP server published by gjsify in the Browser category: the full JavaScript ecosystem, native on GNOME. Conduid read 203 tools from its source: activate_action, activate_widget, addInterception, addRule, addSymbolicBreakpoint, awaitPromise and 197 more. It is published to npm as @gjsify/mcp, a package with no command-line entry point.
The gjsify/gjsify monorepo this package is published from has 28 stars and 3 forks, is licensed MIT, and its last commit was on 2 Dec 2026. The latest release is v0.64.2 (19 Oct 2026): ⚠ BREAKING CHANGES adwaita: drop the icon registration doors (#2279) Features adwaita-core: add ComboRow/SwitchRow accessors (#2284) (764b4d5) adwaita-core: add Gtk.Chec… It follows v0.64.1 (16 Oct 2026), and the 5 most recent releases go back to v0.62.0 (12 Oct 2026). It passes all 4 static checks Conduid ran on the repository. Its topics include canvas, dom, fetch, gjs, gjsify and gnome.
Install
npm install @gjsify/mcpgit clone https://github.com/gjsify/gjsifyTools (203)
activate_actionActivate a GAction by scope + name, with an optional parameter (a plain JSON value coerced to the action's declared type).| Parameter | Type | Description |
|---|---|---|
| name * | string | |
| scope * | string | |
| value | any |
activate_widgetActivate the widget at a widget path (from dump_tree) — the click-drive counterpart of get_property: a Button emits clicked, an Entry activates, a Toggle toggles; a list/nav/preference row (GtkListBoxRow/AdwActionRow) is clicked on its GtkListBox (selected + row-activated). Returns whether the widget activated.| Parameter | Type | Description |
|---|---|---|
| path * | string |
addInterceptionAdd an interception.addRuleCreates a new empty rule with the given <code>selector</code> in a stylesheet with given <code>styleSheetId</code>.addSymbolicBreakpointAdds a JavaScript breakpoint that pauses execution whenever a function with the given name is about to be called.awaitPromiseCalls the async callback when the promise with the given ID gets settled.callFunctionOnCalls function with given declaration on the given object. Object group of the result is inherited from the target object.cdp_connectConnect to an inspector target (defaults to the first web-page) and auto-enable the Inspector / Runtime / DOM / Console domains. Call before cdp_send / the curated tools.| Parameter | Type | Description |
|---|---|---|
| target | object | Optional target selector, e.g. {targetId} or {wsUrl}; omit for the first web-page. |
cdp_discover_targetsList the inspectable targets (web-page / service-worker / …) on the inspector server.cdp_drain_eventsReturn + clear the buffered protocol events (console messages, DOM mutations, …).cdp_sendSend any WebKit Remote Inspector command `Domain.command` (e.g. "Page.reload", "Network.enable") with optional params, and return its result JSON. The universal fallback for commands without a curated tool. Requires a prior cdp_connect.| Parameter | Type | Description |
|---|---|---|
| method * | string | Protocol method, e.g. "Runtime.evaluate". |
| params | object |
change_action_stateSet a stateful GAction’s state — for idempotent toggles like win.toggle-grid.| Parameter | Type | Description |
|---|---|---|
| name * | string | |
| scope * | string | |
| value * | any |
clearObjectStoreClears all entries from an object store.continueToLocationContinues execution until specific location is reached. This will trigger either a Debugger.paused or Debugger.resumed event.createStyleSheetCreates a new special "inspector" stylesheet in the frame with given <code>frameId</code>.deleteCookieDeletes browser cookie with given name, domain, and path.device_screenshotPNG of the WHOLE Android device/emulator screen via `adb exec-out screencap -p` (host-side; works without the in-app devtools agent). Pass `serial` to target a specific device.| Parameter | Type | Description |
|---|---|---|
| serial | string |
disableDisables storage tracking, prevents storage events from being sent to the client.discardSearchResultsDiscards search results from the session with the given id. <code>getSearchResults</code> should no longer be called for that search.dom_treeThe DOM/Elements tree from a selector (default: document root) down to max_depth, capped per node.| Parameter | Type | Description |
|---|---|---|
| maxDepth | number | |
| selector | string |
dump_cssList the devtools-installed CSS provider names.dump_gsettingsDump every key + value of an installed GSettings schema (read-only).| Parameter | Type | Description |
|---|---|---|
| schema * | string |
dump_treeDump the widget tree as JSON from `root` (a widget path like "toplevel:0/child:2", or omit for the active window), bounded by `depth`.| Parameter | Type | Description |
|---|---|---|
| depth | number | |
| root | string |
eval_jsEvaluate a JavaScript EXPRESSION in the page and return its value (JSON round-trip). Wrap multi-statement code in an IIFE, e.g. `(() => { const a = 1; return a + 1; })()`. Page errors surface as an error.| Parameter | Type | Description |
|---|---|---|
| script * | string |
evaluateEvaluates expression on global object.evaluateOnCallFrameEvaluates expression on a given call frame.find_widgetFind the first widget matching a selector and return its widget path, searched depth-first from the active window. Selector is a GType name, a `:css-class`, or both (`GtkButton:suggested-action`). A GType name matches SUBCLASSES too, so `AdwDialog` reaches the application's own Adw.Dialog subclass, and an interface name matches every implementor (`GtkAccessible` matches almost anything); an exact match wins over both. Invisible and unmapped subtrees are skipped, so a hit is something a user can actually reach. Saves dumping the whole tree to hunt for a path — and unlike a path written down earlier, a selector survives a widget being inserted above the target. Returns an empty result when nothing matches.| Parameter | Type | Description |
|---|---|---|
| selector * | string |
focusFocuses the given element.follow_linkClick the first element matching a CSS selector (or an `<a>` by exact visible text), then wait for the resulting navigation. Returns {clicked, navigated, uri}.| Parameter | Type | Description |
|---|---|---|
| selectorOrText * | string |
forcePseudoStateEnsures that the given node will have specified pseudo-classes whenever its style is computed by the browser.getAccessibilityPropertiesForNodeReturns a dictionary of accessibility properties for the node.getAssociatedDataForNodeReturns all data that has been associated with the node and is available for data binding.getAttributesReturns attributes for the specified node.getBasicBlocksReturns a list of basic blocks for the given sourceID with information about their text ranges and whether or not they have executed.getBreakpointLocationsReturns a list of valid breakpoint locations within the given location range.getCollectionEntriesReturns entries of given Map / Set collection.getComputedStyleForNodeReturns the computed style for a DOM node identified by <code>nodeId</code>.getDataBindingsForNodeReturns all data binding relationships between data that is associated with the node and the node itself.getDisplayablePropertiesReturns displayable properties of a given object. Object group of the result is inherited from the target object. Displayable properties are own properties, internal properties, and native getters in the prototype chain (assumed to be bindings and treated like own properties for the frontend).getEventListenersForNodeReturns event listeners relevant to the node.getFontDataForNodeReturns the primary font of the computed font cascade for a DOM node identified by <code>nodeId</code>.getFunctionDetailsReturns detailed information on given function.getInlineStylesForNodeReturns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM attributes) for a DOM node identified by <code>nodeId</code>.getMatchedStylesForNodeReturns requested styles for a DOM node identified by <code>nodeId</code>.getMediaStatsReturns media stats for the selected node.getOuterHTMLReturns node's HTML markup.getPreviewReturns a preview (string, Debugger.FunctionDetails, or Runtime.ObjectPreview) for a Heap.HeapObjectId.getPropertiesReturns properties of a given object. Object group of the result is inherited from the target object.getRemoteObjectReturns the strongly referenced Runtime.RemoteObject for a Heap.HeapObjectId.getResourceContentReturns content of the given resource.getResponseBodyReturns content served for the given request.getRuntimeTypesForVariablesAtOffsetsReturns detailed information on the given function.getScriptSourceReturns source for the script with given id.getSearchResultsReturns search results from given <code>fromIndex</code> to given <code>toIndex</code> from the sarch with the given identifier.getSerializedCertificateFetches a serialized secure certificate for the given requestId to be displayed via InspectorFrontendHost.showCertificate.getStyleSheetReturns stylesheet data for the specified <code>styleSheetId</code>.getStyleSheetTextReturns the current textual content and the URL for a stylesheet.get_accessibilityApproximate accessibility tree from a selector (default: body) — role + accessible name + aria-* per node, down to max_depth.| Parameter | Type | Description |
|---|---|---|
| maxDepth | number | |
| selector | string |
get_consoleBuffered console.* output captured from the page ({level, args}).get_current_storyStorybook: the active story as {title, story, args}.get_focusedThe currently-focused widget (path, name, type), or null.get_linksEvery `<a href>` on the page as {href, text, title}.get_networkPage network activity via the Resource Timing API — the navigation entry + each resource.get_page_infoCurrent page state: uri, appUrl, title, canGoBack, canGoForward, lastLoadError.get_propertyRead a widget’s GObject property by widget path + property name (JSON-safe value).| Parameter | Type | Description |
|---|---|---|
| path * | string | |
| prop * | string |
get_statusJSON snapshot of the running app: app id, active window, toplevel count, focused widget, pause state, plus any app-specific status contributed by extensions.hideFlexOverlayHides a flex overlay for a node that begins a 'flex' layout context. The command has no effect if <code>nodeId</code> is specified and invalid, or if there is not currently an overlay set for the <code>nodeId</code>.hideGridOverlayHides a grid overlay for a node that begins a 'grid' layout context. The command has no effect if <code>nodeId</code> is specified and invalid, or if there is not currently an overlay set for the <code>nodeId</code>.highlightFrameHighlights owner element of the frame with given id.highlightNodeHighlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified.highlightNodeListHighlights each DOM node in the given list.highlightQuadHighlights given quad. Coordinates are absolute with respect to the main frame viewport.highlightRectHighlights given rectangle. Coordinates are absolute with respect to the main frame viewport.highlightSelectorHighlights all DOM nodes that match a given selector. A string containing a CSS selector must be specified.initializedSent after the frontend has sent all initialization messages and can resume this worker. This command is required to allow execution in the worker.inspect_elementInspect the first element matching a CSS selector — tag/id/class + attributes + bounding rect + box model (margin/border/padding/content) + a curated set of computed styles. The Elements + Computed + Box Model panels in one call.| Parameter | Type | Description |
|---|---|---|
| selector * | string |
interceptContinueContinue request or response without modifications.interceptRequestWithErrorFail request with given error type.interceptRequestWithResponseProvide response for an intercepted request. Request completely bypasses the network in this case and is immediately fulfilled with the provided data.interceptWithRequestReplace intercepted request with the provided one.interceptWithResponseProvide response content for an intercepted response.layersForNodeReturns the layer tree structure of the current page.list_actionsList the app.* and win.* GActions (name, enabled, parameter/state types) that activate_action / change_action_state can drive.list_instancesList reachable devtools-enabled app instances — every default/labelled bus name on the session bus, or (on the bus-less peer transport) the single app this bridge is dialling.list_storiesStorybook: list the stories on a @gjsify/adwaita-storybook page (title, story, category, controls).list_toplevelsList the app’s live toplevel windows (path, type, title, mapped, focused).loadResourceLoads a resource in the context of a frame on the inspected page without cross origin checks.moveToMoves node into the new container, places it before the given anchor.navigateNavigate to a URL (a `page:*` built-in page or `https://…`). Updates the history stack + URL bar.| Parameter | Type | Description |
|---|---|---|
| url * | string |
open_storyStorybook: open a story by its "Category/Name" title; returns the now-current story.| Parameter | Type | Description |
|---|---|---|
| title * | string |
overrideSettingAllows the frontend to override the inspected page's settings.overrideUserAgentOverride's the user agent of the inspected pageoverrideUserPreferenceAllows the frontend to override the user's preferences on the inspected page.page_screenshotPNG of the rendered WEB CONTENT via the WebKit compositor (use this, not the generic `screenshot`, for the page — WebKit composites out-of-process so the GSK shot is blank). region=full (whole scrollable document) | visible (viewport).| Parameter | Type | Description |
|---|---|---|
| region | string |
parseParses JavaScript source code for errors.performSearchSearches for a given string in the DOM tree. Use <code>getSearchResults</code> to access search results or <code>cancelSearch</code> to end this search session.present_windowRaise + focus the app’s active window.pushNodeByPathToFrontendRequests that the node is sent to the caller given its path.querySelectorExecutes <code>querySelector</code> on a given node.querySelectorAllExecutes <code>querySelectorAll</code> on a given node.query_domMetadata for elements matching a CSS selector ({tagName, id, className, text, href?, visible}).| Parameter | Type | Description |
|---|---|---|
| selector * | string |
reasonsForCompositingLayerProvides the reasons why the given layer was composited.releaseObjectReleases remote object with given id.releaseObjectGroupReleases all remote objects that belong to a given group.reloadReloads the main frame of the inspected page.removeAttributeRemoves attribute with given name from an element with given id.removeBreakpointRemoves JavaScript breakpoint.removeBreakpointForEventListenerRemove any breakpoints on the given event listener.removeDOMBreakpointRemoves DOM breakpoint that was set using <code>setDOMBreakpoint</code>.removeEventBreakpointRemoves breakpoint on particular event of given type.removeInterceptionRemove an interception.removeNodeRemoves node with given id.removeSymbolicBreakpointRemoves a previously added symbolic breakpoint.removeURLBreakpointRemoves breakpoint from network activity for the given URL.requestAssignedNodesRequests the list of assigned nodes for the <code>HTMLSlotElement</code> with the given id.requestAssignedSlotRequests the <code>HTMLSlotElement</code> that the node with the given id is assigned to.requestChildNodesRequests that children of the node with given id are returned to the caller in form of <code>setChildNodes</code> events where not only immediate children are retrieved, but all children down to the specified depth.requestClientNodesGets all <code>-webkit-canvas</code> nodes or active <code>HTMLCanvasElement</code> for a <code>WebGPUDevice</code>.requestContentGets the data for the canvas node with the given CanvasId.requestDataRequests data from object store or index.requestDatabaseRequests database with given name in given frame.requestDatabaseNamesRequests database names for given security origin.requestEffectGets the `Effect` for the animation with the given `AnimationId`.requestEffectTargetGets the `DOM.NodeId` for the target of the effect of the animation with the given `AnimationId`.requestNodeGets the NodeId for the canvas node with the given CanvasId.requestShaderSourceRequests the source of the shader of the given type from the program with the given id.resize_windowResize the active window to an absolute pixel size (exercises responsive breakpoints). Returns the requested size.| Parameter | Type | Description |
|---|---|---|
| height * | number | |
| width * | number |
resolveAnimationResolves JavaScript `WebAnimation` object for given `AnimationId`.resolveContextResolves JavaScript canvas/device context object for given canvasId.resolveNodeResolves JavaScript node object for given node id.resolveWebSocketResolves JavaScript WebSocket object for given request id.resumeWill resume target if it was paused on start.runParses and evaluates the given test string and sends back the result. Returned values are saved to the "audit" object group. Call setup before and teardown after if the `WebInspectorAudit` object should be passed into the test.saveResultAssign a saved result index to this value.screenshotCapture a PNG screenshot via the GTK GSK pipeline. `scope` chooses WHAT is captured: the active window by default, or a single widget inside it by path. `scale` chooses at what resolution. Needs a visible window (auto-raises + retries once when the capture comes back empty).| Parameter | Type | Description |
|---|---|---|
| scale | number | Device pixels per logical pixel. Omitted: the window's own scale factor, so a HiDPI window captures at the resolution it is drawn at. 2 re-renders text and symbolic icons at twice the resolution — it does not magnify. Needs an app on @gjsify/devtools >= 0.64. |
| scope | string | What to capture: omitted, "window" or "active" for the active window, or a `toplevel:N/child:M` path from dump_tree for one widget. An explicit path matching no live widget is an error, not a silent whole-window shot. |
searchInContentSearches for given string in script content.searchInResourceSearches for given string in resource content.searchInResourcesSearches for given string in frame / resource tree structure.sendMessageToTargetSend an Inspector Protocol message to be dispatched to a Target's agents.sendMessageToWorkerSend an Inspector Protocol message to be dispatched to a Worker's agents.send_keyDeliver a key to a widget's key controllers — the half of headless GUI driving that activate_widget does not cover. Accelerator syntax is GTK's own: "Delete", "Left", "<primary>s", "<shift>Up". Omit path to target whatever has the keyboard focus. Proves the HANDLER runs and what it changes, not that GDK would route a real key press there — for that, also read get_property(path, "focusable"), since an unfocusable widget swallows every key silently.| Parameter | Type | Description |
|---|---|---|
| accelerator * | string | |
| path | string |
setAllowEditingUserAgentShadowTreesControls whether any DOM commands work for nodes inside a UserAgent shadow tree.setAsyncStackTraceDepthSet the async stack trace depth for the page. A value of zero disables recording of async stack traces.setAttributeValueSets attribute for an element with given id.setAttributesAsTextSets attributes on element with given id. This method is useful when user edits some existing attribute value and types in several attribute name/value pairs.setAutoCaptureEnabledToggle auto capture state. If <code>true</code> the backend will disable breakpoints and start capturing on navigation. The backend will fire the <code>autoCaptureStarted</code> event when an auto capture starts. The frontend should stop the auto capture when appropriate and re-enable breakpoints.setBlackboxBreakpointEvaluationsSets whether evaluation of breakpoint conditions, ignore counts, and actions happen at the location of the breakpoint or are deferred due to blackboxing.setBreakpointSets JavaScript breakpoint at a given location.setBreakpointByUrlSets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in <code>locations</code> property. Further matching script parsing will result in subsequent <code>breakpointResolved</code> events issued. This logical breakpoint will survive page reloads.setBreakpointForEventListenerSet a breakpoint on the given event listener.setBreakpointsActiveActivates / deactivates all breakpoints on the page.setClearResourceDataOnNavigateToggles whether resource data is cleared on page navigations / reloads.setConsoleClearAPIEnabledControl whether calling <code>console.clear()</code> has an effect in Web Inspector. Defaults to true.setCookieSets a new browser cookie with the given name, domain, and path.setDOMBreakpointSets breakpoint on particular operation with DOM.setEmulatedConditionsEmulate various network conditions (e.g. bytes per second, latency, etc.).setEmulatedMediaEmulates the given media for CSS media queries.setEventBreakpointSets breakpoint on particular event of given type.setEventListenerDisabledEnable/disable the given event listener. A disabled event listener will not fire.setExtraHTTPHeadersSpecifies whether to always send extra HTTP headers with the requests from this page.setGroupingHeaderTextModifies an @rule grouping's header text.setInspectModeEnabledEnters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted. Backend then generates 'inspect' command upon element selection.setInspectedNodeEnables console to refer to the node with given id via $0 (see Command Line API for more details).setInstrumentsInstruments to enable when capture starts on the backend (e.g. auto capture or programmatic capture).setInterceptionEnabledEnable interception of network requests.setLayoutContextTypeChangedModeChange how layout context type changes are handled for nodes. When the new mode would observe nodes the frontend has not yet recieved, those nodes will be sent to the frontend immediately.setLoggingChannelLevelModify the level of a channel.setNodeNameSets node name for a node with given id.setNodeValueSets node value for a node with given id.setOuterHTMLSets node HTML markup, returns new node id.setPauseForInternalScriptsChange whether to pause in the debugger for internal scripts. The default value is false.setPauseOnAssertionsSet pause on assertions state. Assertions are console.assert assertions.setPauseOnDebuggerStatementsControl whether the debugger pauses execution before `debugger` statements.setPauseOnExceptionsDefines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is <code>none</code>.setPauseOnMicrotasksPause when running the next JavaScript microtask.setPauseOnStartIf set to true, new targets will be paused on start waiting for resume command. Other commands can be dispatched on the target before it is resumed.setRecordingAutoCaptureFrameCountTells the backend to record `count` frames whenever a new context is created.setResourceCachingDisabledToggles whether the resource cache may be used when loading resources in the inspected page. If <code>true</code>, the resource cache will not be used when loading resources.setRuleSelectorModifies the rule selector.setSavedResultAliasCreates an additional reference to all saved values in the Console using the the given string as a prefix instead of $.setScreenSizeOverrideOverrides screen size exposed to DOM and used in media queries for testing with provided values.setShaderProgramDisabledEnable/disable the visibility of the given shader program.setShaderProgramHighlightedEnable/disable highlighting of the given shader program.setShouldBlackboxURLSets whether the given URL should be in the list of blackboxed scripts, which are ignored when pausing.setShowPaintRectsRequests that backend shows paint rectanglessetShowRulersRequests that backend draw rulers in the inspector overlaysetStyleSheetTextSets the new stylesheet text, thereby invalidating all existing <code>CSSStyleId</code>'s and <code>CSSRuleId</code>'s contained by this stylesheet.setStyleTextSets the new <code>text</code> for the respective style.setURLBreakpointSets breakpoint on network activity for the given URL.set_story_argStorybook: set one control arg on the active story (drives the live preview); value is string|number|boolean.| Parameter | Type | Description |
|---|---|---|
| name * | string | |
| value * | any |
set_viewportSet the WebView content-region size in pixels (responsive testing); returns the applied size.| Parameter | Type | Description |
|---|---|---|
| height * | number | |
| width * | number |
setupCreates the `WebInspectorAudit` object that is passed to run. Must call teardown before calling setup more than once.showFlexOverlayShows a flex overlay for a node that begins a 'flex' layout context. The command has no effect if <code>nodeId</code> is invalid or the associated node does not begin a 'flex' layout context. A node can only have one flex overlay at a time; subsequent calls with the same <code>nodeId</code> will override earlier calls.showGridOverlayShows a grid overlay for a node that begins a 'grid' layout context. The command has no effect if <code>nodeId</code> is invalid or the associated node does not begin a 'grid' layout context. A node can only have one grid overlay at a time; subsequent calls with the same <code>nodeId</code> will override earlier calls.snapshotNodeCapture a snapshot of the specified node that does not include unrelated layers.snapshotRectCapture a snapshot of the page within the specified rectangle and coordinate system.startStarts capturing instrumentation events.startRecordingRecord the next frame, or up to the given number of bytes of data, for the given canvas.startTrackingStart tracking script evaluations.stopRecordingStop recording the given canvas.The first 200 of 203 tools, in name order.
Security checks
From the gjsify/gjsify monorepo, not this package alone.
- ✓README presentThe repository's README runs to about 2.1K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
2 checks have not been run yet.
Releases
From the gjsify/gjsify monorepo.
README
The repository's README runs to about 2.1K words, fetched a month ago. The original in the repository is authoritative.
Read full README