playwright_screenshot
Capture screenshots of web pages or specific elements with customizable dimensions, formats, and storage options using this tool. Export as PNG, base64, or save to a specified directory for efficient web content documentation.
Instructions
Take a screenshot of the current page or a specific element
Input Schema
Name | Required | Description | Default |
---|---|---|---|
downloadsDir | No | Custom downloads directory path (default: user's Downloads folder) | |
fullPage | No | Store screenshot of the entire page (default: false) | |
height | No | Height in pixels (default: 600) | |
name | Yes | Name for the screenshot | |
savePng | No | Save screenshot as PNG file (default: false) | |
selector | No | CSS selector for element to screenshot | |
storeBase64 | No | Store screenshot in base64 format (default: true) | |
width | No | Width in pixels (default: 800) |
Input Schema (JSON Schema)
You must be authenticated.
Other Tools from Playwright MCP Server
- clear_codegen_session
- end_codegen_session
- get_codegen_session
- playwright_assert_response
- playwright_click
- playwright_close
- playwright_console_logs
- playwright_custom_user_agent
- playwright_delete
- playwright_drag
- playwright_evaluate
- playwright_expect_response
- playwright_fill
- playwright_get
- playwright_get_visible_html
- playwright_get_visible_text
- playwright_go_back
- playwright_go_forward
- playwright_hover
- playwright_iframe_click
- playwright_navigate
- playwright_patch
- playwright_post
- playwright_press_key
- playwright_put
- playwright_save_as_pdf
- playwright_screenshot
- playwright_select
- start_codegen_session
Related Tools
- @random-robbie/mcp-web-browser
- @sethbang/mcp-screenshot-server
- @amotivv/cloudflare-browser-rendering-mcp
- @lars-hagen/mcp-playwright-cdp
- @browserbase/mcp-server-browserbase