screenshot
Capture an image of a specific element by ID or CSS selector, or the full viewport when omitted. Enables visual verification during browser automation.
Instructions
Capture element image (5-10k tokens), or full viewport when no id/selector is given. Use analyzePage for form data/validation (8-10k tokens).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | APOM element ID. Mutually exclusive with selector. Omit both for viewport screenshot. | |
| format | No | Format (default: jpeg) | |
| padding | No | Padding px (default: 0). Ignored for viewport. | |
| quality | No | JPEG quality (default: 40) | |
| maxWidth | No | Max width px (default: 1024, null=original) | |
| selector | No | CSS selector. Mutually exclusive with id. Omit both for viewport screenshot. | |
| maxHeight | No | Max height px (default: 8000, null=original) |