You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding new tools, please be mindful of the tool name length. Some clients, like Cursor, have a 60-character limit for the combined server and tool name (`server_name:tool_name`).
130
+
131
+
Our server name is `playwright-mcp`. Please ensure your tool names are short enough to not exceed this limit.
132
+
127
133
## Star History
128
134
129
135
[](https://star-history.com/#executeautomation/mcp-playwright&Date)
Copy file name to clipboardExpand all lines: docs/docs/release.mdx
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,23 @@ import YouTubeVideoEmbed from '@site/src/components/HomepageFeatures/YouTubeVide
5
5
6
6
# Release Notes
7
7
8
+
## Version 1.0.6
9
+
-**New Tool: `playwright_upload_file`**: Added a new tool to upload files to an `input[type='file']` element.
10
+
-**Enhanced Content Extraction**:
11
+
- Significantly improved `playwright_get_visible_text` tool for more accurate text extraction.
12
+
- Added `playwright_get_visible_html` tool to retrieve the full HTML content of the page.
13
+
-**By default, all `<script>` tags are now removed from the HTML output for `playwright_get_visible_html` (unless `removeScripts: false` is set). Output is also truncated to a safe length (default 20,000 characters) to prevent issues with LLM clients.**
14
+
-**Improved Interactions**:
15
+
- Updated `playwright_hover` functionality in the interaction tool.
16
+
-**Browser Support**:
17
+
- Added support for using locally installed browsers by specifying the Chrome executable path.
18
+
-**Documentation Updates**:
19
+
- Added a new local setup and installation guide.
20
+
- Updated examples and documentation for the new and improved tools.
21
+
-**Test Coverage**:
22
+
- Added and updated tests for the new content extraction and interaction features.
23
+
-**Version bump**: Incremented version to 1.0.6.
24
+
8
25
## Version 1.0.5
9
26
-**Removed SSE (Server-Sent Events) Support**: All SSE-related code, endpoints, and documentation have been fully removed. The server now only supports STDIO transport for communication with clients.
10
27
-**Codebase Cleanup**: Removed all references to SseServer, /events endpoint, and related event streaming features from the code and documentation.
Copy file name to clipboardExpand all lines: src/tools.ts
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -350,17 +350,18 @@ export function createToolDefinitions() {
350
350
},
351
351
{
352
352
name: "playwright_get_visible_html",
353
-
description: "Get the HTML content of the current page",
353
+
description: "Get the HTML content of the current page. By default, all <script> tags are removed from the output unless removeScripts is explicitly set to false.",
354
354
inputSchema: {
355
355
type: "object",
356
356
properties: {
357
357
selector: {type: "string",description: "CSS selector to limit the HTML to a specific container"},
358
-
removeScripts: {type: "boolean",description: "Remove all script tags from the HTML (default: false)"},
358
+
removeScripts: {type: "boolean",description: "Remove all script tags from the HTML (default: true)"},
359
359
removeComments: {type: "boolean",description: "Remove all HTML comments (default: false)"},
360
360
removeStyles: {type: "boolean",description: "Remove all style tags from the HTML (default: false)"},
361
361
removeMeta: {type: "boolean",description: "Remove all meta tags from the HTML (default: false)"},
362
362
cleanHtml: {type: "boolean",description: "Perform comprehensive HTML cleaning (default: false)"},
363
-
minify: {type: "boolean",description: "Minify the HTML output (default: false)"}
363
+
minify: {type: "boolean",description: "Minify the HTML output (default: false)"},
364
+
maxLength: {type: "number",description: "Maximum number of characters to return (default: 20000)"}
0 commit comments