📸 ScreenshotsMCP

screenshot_element

Capture a screenshot of a specific element on the page by CSS selector.

Parameters

ParameterTypeRequiredDefaultDescription
urlstringYesThe URL to screenshot
selectorstringYesCSS selector of the element to capture
formatstringNo"png"png, jpeg, or webp

Example

Screenshot just the pricing table on https://myapp.com using selector ".pricing-section"

Notes

  • Only captures the matched element, not the full page
  • Useful for isolating specific components: hero sections, navbars, cards, forms
  • The selector must match exactly one element on the page

On this page