browser-devtools-mcp 0.1.6 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +93 -21
- package/README.md +98 -18
- package/dist/cli.js +53 -1721
- package/dist/core.js +764 -0
- package/dist/daemon-server.js +1 -338
- package/dist/index.d.ts +2 -0
- package/dist/index.js +210 -80
- package/dist/otel/otel-initializer.bundle.js +0 -1
- package/dist/tools/a11y/index.d.ts +2 -0
- package/dist/tools/content/index.d.ts +2 -0
- package/dist/tools/debug/index.d.ts +2 -0
- package/dist/tools/figma/compare/index.d.ts +56 -0
- package/dist/tools/figma/compare/types.d.ts +15 -0
- package/dist/tools/figma/index.d.ts +2 -0
- package/dist/tools/index.d.ts +4 -0
- package/dist/tools/interaction/index.d.ts +2 -0
- package/dist/tools/navigation/index.d.ts +2 -0
- package/dist/tools/o11y/index.d.ts +2 -0
- package/dist/tools/react/index.d.ts +2 -0
- package/dist/tools/run/index.d.ts +2 -0
- package/dist/tools/stub/index.d.ts +2 -0
- package/dist/tools/sync/index.d.ts +2 -0
- package/dist/tools/types.d.ts +21 -0
- package/dist/types.d.ts +78 -0
- package/package.json +11 -11
- package/dist/browser.js +0 -213
- package/dist/browser.js.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/config.js +0 -96
- package/dist/config.js.map +0 -1
- package/dist/context.js +0 -298
- package/dist/context.js.map +0 -1
- package/dist/daemon-server.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/logger.js +0 -97
- package/dist/logger.js.map +0 -1
- package/dist/mcp-server.js +0 -401
- package/dist/mcp-server.js.map +0 -1
- package/dist/otel/otel-controller.js +0 -323
- package/dist/otel/otel-controller.js.map +0 -1
- package/dist/otel/otel-initializer.bundle.js.map +0 -7
- package/dist/otel/otel-proxy.js +0 -407
- package/dist/otel/otel-proxy.js.map +0 -1
- package/dist/server-info.js +0 -186
- package/dist/server-info.js.map +0 -1
- package/dist/tools/a11y/index.js +0 -7
- package/dist/tools/a11y/index.js.map +0 -1
- package/dist/tools/a11y/take-aria-snapshot.js +0 -54
- package/dist/tools/a11y/take-aria-snapshot.js.map +0 -1
- package/dist/tools/a11y/take-ax-tree-snapshot.js +0 -850
- package/dist/tools/a11y/take-ax-tree-snapshot.js.map +0 -1
- package/dist/tools/content/get-as-html.js +0 -164
- package/dist/tools/content/get-as-html.js.map +0 -1
- package/dist/tools/content/get-as-text.js +0 -76
- package/dist/tools/content/get-as-text.js.map +0 -1
- package/dist/tools/content/index.js +0 -14
- package/dist/tools/content/index.js.map +0 -1
- package/dist/tools/content/save-as-pdf.js +0 -119
- package/dist/tools/content/save-as-pdf.js.map +0 -1
- package/dist/tools/content/take-screenshot.js +0 -272
- package/dist/tools/content/take-screenshot.js.map +0 -1
- package/dist/tools/figma/compare/compare-image-embedding.js +0 -159
- package/dist/tools/figma/compare/compare-image-embedding.js.map +0 -1
- package/dist/tools/figma/compare/compare-mssim.js +0 -98
- package/dist/tools/figma/compare/compare-mssim.js.map +0 -1
- package/dist/tools/figma/compare/compare-text-embedding.js +0 -291
- package/dist/tools/figma/compare/compare-text-embedding.js.map +0 -1
- package/dist/tools/figma/compare/index.js +0 -139
- package/dist/tools/figma/compare/index.js.map +0 -1
- package/dist/tools/figma/compare/types.js +0 -3
- package/dist/tools/figma/compare/types.js.map +0 -1
- package/dist/tools/figma/compare/vector.js +0 -46
- package/dist/tools/figma/compare/vector.js.map +0 -1
- package/dist/tools/figma/compare-page-with-design.js +0 -240
- package/dist/tools/figma/compare-page-with-design.js.map +0 -1
- package/dist/tools/figma/figma-service.js +0 -134
- package/dist/tools/figma/figma-service.js.map +0 -1
- package/dist/tools/figma/index.js +0 -6
- package/dist/tools/figma/index.js.map +0 -1
- package/dist/tools/index.js +0 -41
- package/dist/tools/index.js.map +0 -1
- package/dist/tools/interaction/click.js +0 -29
- package/dist/tools/interaction/click.js.map +0 -1
- package/dist/tools/interaction/drag.js +0 -41
- package/dist/tools/interaction/drag.js.map +0 -1
- package/dist/tools/interaction/fill.js +0 -28
- package/dist/tools/interaction/fill.js.map +0 -1
- package/dist/tools/interaction/hover.js +0 -29
- package/dist/tools/interaction/hover.js.map +0 -1
- package/dist/tools/interaction/index.js +0 -24
- package/dist/tools/interaction/index.js.map +0 -1
- package/dist/tools/interaction/press-key.js +0 -99
- package/dist/tools/interaction/press-key.js.map +0 -1
- package/dist/tools/interaction/resize-viewport.js +0 -110
- package/dist/tools/interaction/resize-viewport.js.map +0 -1
- package/dist/tools/interaction/resize-window.js +0 -261
- package/dist/tools/interaction/resize-window.js.map +0 -1
- package/dist/tools/interaction/scroll.js +0 -304
- package/dist/tools/interaction/scroll.js.map +0 -1
- package/dist/tools/interaction/select.js +0 -30
- package/dist/tools/interaction/select.js.map +0 -1
- package/dist/tools/navigation/go-back.js +0 -76
- package/dist/tools/navigation/go-back.js.map +0 -1
- package/dist/tools/navigation/go-forward.js +0 -76
- package/dist/tools/navigation/go-forward.js.map +0 -1
- package/dist/tools/navigation/go-to.js +0 -80
- package/dist/tools/navigation/go-to.js.map +0 -1
- package/dist/tools/navigation/index.js +0 -14
- package/dist/tools/navigation/index.js.map +0 -1
- package/dist/tools/navigation/reload.js +0 -76
- package/dist/tools/navigation/reload.js.map +0 -1
- package/dist/tools/o11y/get-console-messages.js +0 -151
- package/dist/tools/o11y/get-console-messages.js.map +0 -1
- package/dist/tools/o11y/get-http-requests.js +0 -216
- package/dist/tools/o11y/get-http-requests.js.map +0 -1
- package/dist/tools/o11y/get-trace-id.js +0 -30
- package/dist/tools/o11y/get-trace-id.js.map +0 -1
- package/dist/tools/o11y/get-web-vitals.js +0 -595
- package/dist/tools/o11y/get-web-vitals.js.map +0 -1
- package/dist/tools/o11y/index.js +0 -18
- package/dist/tools/o11y/index.js.map +0 -1
- package/dist/tools/o11y/new-trace-id.js +0 -32
- package/dist/tools/o11y/new-trace-id.js.map +0 -1
- package/dist/tools/o11y/set-trace-id.js +0 -28
- package/dist/tools/o11y/set-trace-id.js.map +0 -1
- package/dist/tools/react/get-component-for-element.js +0 -941
- package/dist/tools/react/get-component-for-element.js.map +0 -1
- package/dist/tools/react/get-element-for-component.js +0 -1190
- package/dist/tools/react/get-element-for-component.js.map +0 -1
- package/dist/tools/react/index.js +0 -10
- package/dist/tools/react/index.js.map +0 -1
- package/dist/tools/run/index.js +0 -7
- package/dist/tools/run/index.js.map +0 -1
- package/dist/tools/run/js-in-browser.js +0 -51
- package/dist/tools/run/js-in-browser.js.map +0 -1
- package/dist/tools/run/js-in-sandbox.js +0 -175
- package/dist/tools/run/js-in-sandbox.js.map +0 -1
- package/dist/tools/stub/clear.js +0 -41
- package/dist/tools/stub/clear.js.map +0 -1
- package/dist/tools/stub/index.js +0 -14
- package/dist/tools/stub/index.js.map +0 -1
- package/dist/tools/stub/intercept-http-request.js +0 -112
- package/dist/tools/stub/intercept-http-request.js.map +0 -1
- package/dist/tools/stub/list.js +0 -75
- package/dist/tools/stub/list.js.map +0 -1
- package/dist/tools/stub/mock-http-response.js +0 -152
- package/dist/tools/stub/mock-http-response.js.map +0 -1
- package/dist/tools/stub/stub-controller.js +0 -284
- package/dist/tools/stub/stub-controller.js.map +0 -1
- package/dist/tools/sync/index.js +0 -6
- package/dist/tools/sync/index.js.map +0 -1
- package/dist/tools/sync/wait-for-network-idle.js +0 -152
- package/dist/tools/sync/wait-for-network-idle.js.map +0 -1
- package/dist/tools/tool-executor.js +0 -79
- package/dist/tools/tool-executor.js.map +0 -1
- package/dist/tools/types.js +0 -3
- package/dist/tools/types.js.map +0 -1
- package/dist/types.js +0 -55
- package/dist/types.js.map +0 -1
- package/dist/utils/cli-utils.js +0 -253
- package/dist/utils/cli-utils.js.map +0 -1
- package/dist/utils.js +0 -85
- package/dist/utils.js.map +0 -1
package/LICENSE
CHANGED
|
@@ -1,21 +1,93 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Copyright
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
Elastic License 2.0 (ELv2)
|
|
2
|
+
|
|
3
|
+
Copyright 2025 Serkan ÖZAL
|
|
4
|
+
|
|
5
|
+
## Acceptance
|
|
6
|
+
|
|
7
|
+
By using the software, you agree to all of the terms and conditions below.
|
|
8
|
+
|
|
9
|
+
## Copyright License
|
|
10
|
+
|
|
11
|
+
The licensor grants you a non-exclusive, royalty-free, worldwide,
|
|
12
|
+
non-sublicensable, non-transferable license to use, copy, distribute, make
|
|
13
|
+
available, and prepare derivative works of the software, in each case subject
|
|
14
|
+
to the limitations and conditions below.
|
|
15
|
+
|
|
16
|
+
## Limitations
|
|
17
|
+
|
|
18
|
+
You may not provide the software to third parties as a hosted or managed
|
|
19
|
+
service, where the service provides users with access to any substantial set of
|
|
20
|
+
the features or functionality of the software.
|
|
21
|
+
|
|
22
|
+
You may not move, change, disable, or circumvent the license key functionality
|
|
23
|
+
in the software, and you may not remove or obscure any functionality in the
|
|
24
|
+
software that is protected by the license key.
|
|
25
|
+
|
|
26
|
+
You may not alter, remove, or obscure any licensing, copyright, or other notices
|
|
27
|
+
of the licensor in the software. Any use of the licensor's trademarks is subject
|
|
28
|
+
to applicable law.
|
|
29
|
+
|
|
30
|
+
## Patents
|
|
31
|
+
|
|
32
|
+
The licensor grants you a license, under any patent claims the licensor can
|
|
33
|
+
license, or becomes able to license, to make, have made, use, sell, offer for
|
|
34
|
+
sale, import and have imported the software, in each case subject to the
|
|
35
|
+
limitations and conditions in this license. This license does not cover any
|
|
36
|
+
patent claims that you cause to be infringed by modifications or additions to
|
|
37
|
+
the software. If you or your company make any written claim that the software
|
|
38
|
+
infringes or contributes to infringement of any patent, your patent license for
|
|
39
|
+
the software granted under these terms ends immediately. If your company makes
|
|
40
|
+
such a claim, your patent license ends immediately for work on behalf of your
|
|
41
|
+
company.
|
|
42
|
+
|
|
43
|
+
## Notices
|
|
44
|
+
|
|
45
|
+
You must ensure that anyone who gets a copy of any part of the software from you
|
|
46
|
+
also gets a copy of these terms.
|
|
47
|
+
|
|
48
|
+
If you modify the software, you must include in any modified copies of the
|
|
49
|
+
software prominent notices stating that you have modified the software.
|
|
50
|
+
|
|
51
|
+
## No Other Rights
|
|
52
|
+
|
|
53
|
+
These terms do not imply any licenses other than those expressly granted in
|
|
54
|
+
these terms.
|
|
55
|
+
|
|
56
|
+
## Termination
|
|
57
|
+
|
|
58
|
+
If you use the software in violation of these terms, such use is not licensed,
|
|
59
|
+
and your licenses will automatically terminate. If the licensor provides you
|
|
60
|
+
with a notice of your violation, and you cease all violation of this license no
|
|
61
|
+
later than 30 days after you receive that notice, your licenses will be
|
|
62
|
+
reinstated retroactively. However, if you violate these terms after such
|
|
63
|
+
reinstatement, any additional violation of these terms will cause your licenses
|
|
64
|
+
to terminate automatically and permanently.
|
|
65
|
+
|
|
66
|
+
## No Liability
|
|
67
|
+
|
|
68
|
+
*As far as the law allows, the software comes as is, without any warranty or
|
|
69
|
+
condition, and the licensor will not be liable to you for any damages arising
|
|
70
|
+
out of these terms or the use or nature of the software, under any kind of
|
|
71
|
+
legal claim.*
|
|
72
|
+
|
|
73
|
+
## Definitions
|
|
74
|
+
|
|
75
|
+
The **licensor** is the entity offering these terms, and the **software** is the
|
|
76
|
+
software the licensor makes available under these terms, including any portion
|
|
77
|
+
of it.
|
|
78
|
+
|
|
79
|
+
**you** refers to the individual or entity agreeing to these terms.
|
|
80
|
+
|
|
81
|
+
**your company** is any legal entity, sole proprietorship, or other kind of
|
|
82
|
+
organization that you work for, plus all organizations that have control over,
|
|
83
|
+
are under the control of, or are under common control with that organization.
|
|
84
|
+
**control** means ownership of substantially all the assets of an entity, or the
|
|
85
|
+
power to direct its management and policies by vote, contract, or otherwise.
|
|
86
|
+
Control can be direct or indirect.
|
|
87
|
+
|
|
88
|
+
**your licenses** are all the licenses granted to you for the software under
|
|
89
|
+
these terms.
|
|
90
|
+
|
|
91
|
+
**use** means anything you do with the software requiring one of your licenses.
|
|
92
|
+
|
|
93
|
+
**trademark** means trademarks, service marks, and similar rights.
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<p align="center">
|
|
8
8
|
<a href="https://github.com/serkan-ozal/browser-devtools-mcp/actions/workflows/build.yml"><img src="https://github.com/serkan-ozal/browser-devtools-mcp/actions/workflows/build.yml/badge.svg" alt="Build Status"></a>
|
|
9
9
|
<a href="https://www.npmjs.com/package/browser-devtools-mcp"><img src="https://badge.fury.io/js/browser-devtools-mcp.svg" alt="NPM Version"></a>
|
|
10
|
-
<a href="https://github.com/serkan-ozal/browser-devtools-mcp/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-
|
|
10
|
+
<a href="https://github.com/serkan-ozal/browser-devtools-mcp/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Elastic--2.0-blue" alt="License"></a>
|
|
11
11
|
</p>
|
|
12
12
|
|
|
13
13
|
<p align="center">
|
|
@@ -91,6 +91,34 @@ Browser DevTools MCP exposes a Playwright-powered browser runtime to AI agents,
|
|
|
91
91
|
- The extension enables reliable root discovery and component search via `__REACT_DEVTOOLS_GLOBAL_HOOK__`
|
|
92
92
|
- Without the extension, tools fall back to scanning DOM for `__reactFiber$` pointers (best-effort, less reliable)
|
|
93
93
|
|
|
94
|
+
### Debug Tools (Non-Blocking)
|
|
95
|
+
Non-blocking debugging tools that capture snapshots without pausing execution. Ideal for AI-assisted debugging.
|
|
96
|
+
|
|
97
|
+
**Probe Types:**
|
|
98
|
+
- **Tracepoint**: Captures call stack, local variables, and async stack traces at a code location
|
|
99
|
+
- **Logpoint**: Evaluates and logs expressions without full debug context (lightweight)
|
|
100
|
+
- **Exceptionpoint**: Captures snapshots when exceptions occur (uncaught or all)
|
|
101
|
+
- **Dompoint**: Monitors DOM mutations (subtree-modified, attribute-modified, node-removed)
|
|
102
|
+
- **Netpoint**: Monitors network requests/responses matching a URL pattern
|
|
103
|
+
|
|
104
|
+
**Core Operations (per probe type):**
|
|
105
|
+
- `put-*`: Create a probe at a location
|
|
106
|
+
- `remove-*`: Remove a specific probe
|
|
107
|
+
- `list-*`: List all probes of a type
|
|
108
|
+
- `clear-*`: Remove all probes of a type
|
|
109
|
+
- `get-*-snapshots`: Retrieve captured snapshots (supports `fromSequence` for polling)
|
|
110
|
+
- `clear-*-snapshots`: Clear captured snapshots
|
|
111
|
+
|
|
112
|
+
**Additional Tools:**
|
|
113
|
+
- **Watch Expressions**: Add expressions to evaluate at every tracepoint/exceptionpoint hit
|
|
114
|
+
- **Status**: Get current debugging status (enabled, probe counts, snapshot stats)
|
|
115
|
+
|
|
116
|
+
**Key Features:**
|
|
117
|
+
- Source map support for debugging bundled/minified code with original source locations
|
|
118
|
+
- Automatic debugging enablement on first tool use
|
|
119
|
+
- Configurable limits (max snapshots, call stack depth, async segments)
|
|
120
|
+
- Sequence numbers for efficient snapshot polling
|
|
121
|
+
|
|
94
122
|
## Prerequisites
|
|
95
123
|
|
|
96
124
|
- Node.js 18+
|
|
@@ -109,6 +137,16 @@ Browser DevTools MCP server supports the following CLI arguments for configurati
|
|
|
109
137
|
- `--transport <stdio|streamable-http>` - Configures the transport protocol (defaults to `stdio`).
|
|
110
138
|
- `--port <number>` – Configures the port number to listen on when using `streamable-http` transport (defaults to `3000`).
|
|
111
139
|
|
|
140
|
+
### Install as AI Agent Skill
|
|
141
|
+
|
|
142
|
+
Install browser automation capabilities as a skill for AI coding agents (Claude Code, Cursor, Windsurf, etc.) using the [skills.sh](https://skills.sh) ecosystem:
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
npx skills add serkan-ozal/browser-devtools-skills
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
This installs the CLI skill that enables AI agents to automate browsers for web testing, screenshots, form filling, accessibility audits, performance analysis, and more. See the [Skills Repository](https://github.com/serkan-ozal/browser-devtools-skills) for details.
|
|
149
|
+
|
|
112
150
|
## MCP Client Configuration
|
|
113
151
|
|
|
114
152
|
### Claude Desktop
|
|
@@ -507,6 +545,39 @@ browser-devtools-cli
|
|
|
507
545
|
│ └── clear # Clear stubs
|
|
508
546
|
├── sync # Synchronization commands
|
|
509
547
|
│ └── wait-for-network-idle # Wait for network idle
|
|
548
|
+
├── debug # Non-blocking debugging commands
|
|
549
|
+
│ ├── put-tracepoint # Set a tracepoint (captures call stack)
|
|
550
|
+
│ ├── remove-tracepoint # Remove a tracepoint
|
|
551
|
+
│ ├── list-tracepoints # List all tracepoints
|
|
552
|
+
│ ├── clear-tracepoints # Clear all tracepoints
|
|
553
|
+
│ ├── put-logpoint # Set a logpoint (evaluates expression)
|
|
554
|
+
│ ├── remove-logpoint # Remove a logpoint
|
|
555
|
+
│ ├── list-logpoints # List all logpoints
|
|
556
|
+
│ ├── clear-logpoints # Clear all logpoints
|
|
557
|
+
│ ├── put-exceptionpoint # Enable exception catching
|
|
558
|
+
│ ├── put-dompoint # Set DOM mutation breakpoint
|
|
559
|
+
│ ├── remove-dompoint # Remove a DOM breakpoint
|
|
560
|
+
│ ├── list-dompoints # List all DOM breakpoints
|
|
561
|
+
│ ├── clear-dompoints # Clear all DOM breakpoints
|
|
562
|
+
│ ├── put-netpoint # Set network request breakpoint
|
|
563
|
+
│ ├── remove-netpoint # Remove a network breakpoint
|
|
564
|
+
│ ├── list-netpoints # List all network breakpoints
|
|
565
|
+
│ ├── clear-netpoints # Clear all network breakpoints
|
|
566
|
+
│ ├── add-watch # Add a watch expression
|
|
567
|
+
│ ├── remove-watch # Remove a watch expression
|
|
568
|
+
│ ├── list-watches # List all watch expressions
|
|
569
|
+
│ ├── clear-watches # Clear all watch expressions
|
|
570
|
+
│ ├── get-tracepoint-snapshots # Get tracepoint snapshots
|
|
571
|
+
│ ├── clear-tracepoint-snapshots # Clear tracepoint snapshots
|
|
572
|
+
│ ├── get-logpoint-snapshots # Get logpoint snapshots
|
|
573
|
+
│ ├── clear-logpoint-snapshots # Clear logpoint snapshots
|
|
574
|
+
│ ├── get-exceptionpoint-snapshots # Get exception snapshots
|
|
575
|
+
│ ├── clear-exceptionpoint-snapshots # Clear exception snapshots
|
|
576
|
+
│ ├── get-dompoint-snapshots # Get DOM mutation snapshots
|
|
577
|
+
│ ├── clear-dompoint-snapshots # Clear DOM snapshots
|
|
578
|
+
│ ├── get-netpoint-snapshots # Get network snapshots
|
|
579
|
+
│ ├── clear-netpoint-snapshots # Clear network snapshots
|
|
580
|
+
│ └── status # Get debugging status
|
|
510
581
|
└── figma # Figma integration commands
|
|
511
582
|
└── compare-page-with-design
|
|
512
583
|
```
|
|
@@ -915,20 +986,24 @@ The daemon listens on port 2020 by default. Use `--port` to specify a different
|
|
|
915
986
|
|
|
916
987
|
### CLI Skills Documentation
|
|
917
988
|
|
|
918
|
-
Comprehensive documentation for AI agents and automation is available in the [
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
989
|
+
Comprehensive documentation for AI agents and automation is available in the [browser-devtools-skills](https://github.com/serkan-ozal/browser-devtools-skills) repository.
|
|
990
|
+
|
|
991
|
+
Install as an AI agent skill:
|
|
992
|
+
|
|
993
|
+
```bash
|
|
994
|
+
npx skills add serkan-ozal/browser-devtools-skills
|
|
995
|
+
```
|
|
996
|
+
|
|
997
|
+
**Available Skills:**
|
|
998
|
+
|
|
999
|
+
| Skill | Description |
|
|
1000
|
+
|-------|-------------|
|
|
1001
|
+
| `browser-devtools-cli` | Complete CLI reference for browser automation |
|
|
1002
|
+
| `browser-testing` | General browser testing and automation |
|
|
1003
|
+
| `web-debugging` | Console, network, and JavaScript debugging |
|
|
1004
|
+
| `performance-audit` | Web Vitals and performance analysis |
|
|
1005
|
+
| `visual-testing` | Visual testing and responsive design |
|
|
1006
|
+
| `observability` | Distributed tracing and monitoring |
|
|
932
1007
|
|
|
933
1008
|
These skill files are optimized for AI agent consumption with non-interactive command examples, JSON output flags, and session-based workflow patterns.
|
|
934
1009
|
|
|
@@ -974,15 +1049,18 @@ The server can be configured using environment variables:
|
|
|
974
1049
|
- `fullPage` (boolean, optional): Capture full scrollable page (default: false)
|
|
975
1050
|
- `type` (enum, optional): Image format - "png" or "jpeg" (default: "png")
|
|
976
1051
|
- `quality` (number, optional): The quality of the image, between 0-100. Not applicable to PNG images, only used for JPEG format (default: 100)
|
|
1052
|
+
- `includeBase64` (boolean, optional): Include base64-encoded image data in the response (default: false)
|
|
977
1053
|
|
|
978
1054
|
**Returns:**
|
|
979
1055
|
- `filePath` (string): Full path of the saved screenshot file
|
|
980
|
-
- `image` (object): Screenshot image data with mimeType
|
|
1056
|
+
- `image` (object, optional): Screenshot image data with mimeType (only included when `includeBase64` is true)
|
|
981
1057
|
|
|
982
1058
|
**Notes:**
|
|
1059
|
+
- The screenshot is always saved to the file system and the file path is returned
|
|
1060
|
+
- By default, image data is NOT included in the response to reduce payload size
|
|
1061
|
+
- Set `includeBase64` to true when the AI assistant cannot access the MCP server's file system (e.g., remote server, containerized environment, or different machine)
|
|
983
1062
|
- The `quality` parameter only applies to JPEG images. PNG images are always saved at full quality
|
|
984
1063
|
- Lower quality values (e.g., 50-70) result in smaller file sizes but reduced image quality
|
|
985
|
-
- Quality value of 100 provides maximum quality but larger file sizes
|
|
986
1064
|
</details>
|
|
987
1065
|
|
|
988
1066
|
<details>
|
|
@@ -1841,7 +1919,9 @@ Contributions are welcome! Please feel free to submit a Pull Request.
|
|
|
1841
1919
|
|
|
1842
1920
|
## License
|
|
1843
1921
|
|
|
1844
|
-
|
|
1922
|
+
Elastic License 2.0 (ELv2) - see [LICENSE](LICENSE) file for details.
|
|
1923
|
+
|
|
1924
|
+
This license allows free use for any purpose (personal, commercial, local, production) but prohibits providing the software as a hosted/managed service.
|
|
1845
1925
|
|
|
1846
1926
|
## Author
|
|
1847
1927
|
|