take_screenshot
Capture screenshots of web pages or specific elements using CSS/XPath selectors. Take full-page, viewport, or targeted element screenshots with configurable dimensions, quality, and format.
Instructions
Take screenshot with structured result, it will take screenshot of the target element if target is not None, otherwise it will take screenshot of the full page, otherwise it will take screenshot of the current viewport Screenshot page or element (by target selector, supports CSS/XPath, e.g. 'button', '//button', 'css=button', 'xpath=//button'). See: https://playwright.dev/python/docs/locators#locate-by-css-or-xpath
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| target | No | ||
| width | No | ||
| height | No | ||
| full_page | No | ||
| quality | No | ||
| format | No | png |