Skip to main content
Glama

Playwright MCP Server

by devskido
MIT License
10,475

playwright_get_visible_html

Extract visible HTML from web pages, optionally removing scripts, comments, styles, or meta tags. Supports minification, HTML cleaning, and character limits for precise content extraction.

Instructions

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.

Input Schema

NameRequiredDescriptionDefault
cleanHtmlNoPerform comprehensive HTML cleaning (default: false)
maxLengthNoMaximum number of characters to return (default: 20000)
minifyNoMinify the HTML output (default: false)
removeCommentsNoRemove all HTML comments (default: false)
removeMetaNoRemove all meta tags from the HTML (default: false)
removeScriptsNoRemove all script tags from the HTML (default: true)
removeStylesNoRemove all style tags from the HTML (default: false)
selectorNoCSS selector to limit the HTML to a specific container

Input Schema (JSON Schema)

{ "properties": { "cleanHtml": { "description": "Perform comprehensive HTML cleaning (default: false)", "type": "boolean" }, "maxLength": { "description": "Maximum number of characters to return (default: 20000)", "type": "number" }, "minify": { "description": "Minify the HTML output (default: false)", "type": "boolean" }, "removeComments": { "description": "Remove all HTML comments (default: false)", "type": "boolean" }, "removeMeta": { "description": "Remove all meta tags from the HTML (default: false)", "type": "boolean" }, "removeScripts": { "description": "Remove all script tags from the HTML (default: true)", "type": "boolean" }, "removeStyles": { "description": "Remove all style tags from the HTML (default: false)", "type": "boolean" }, "selector": { "description": "CSS selector to limit the HTML to a specific container", "type": "string" } }, "required": [], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/devskido/customed-playwright'

If you have feedback or need assistance with the MCP directory API, please join our Discord server