capture-tab-screenshot
Capture a screenshot of a browser tab's visible area by tab ID. The tab must be authorized by clicking the extension's toolbar button; if not, an error explains what to do.
Instructions
Capture a screenshot of the visible area of a browser tab, by tab ID. The user must authorize each tab by clicking the extension's toolbar button while that tab is open. If the tab is not authorized, this tool returns an error explaining what to ask the user to do; relay that request to the user and retry afterwards. Authorization ends when the tab navigates or closes. Capturing brings the tab to the foreground momentarily.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Image scale relative to CSS pixels, lower values produce smaller images | |
| tabId | Yes | ||
| format | No | Use png only when exact pixel fidelity matters, as it is much larger | jpeg |
| quality | No | JPEG quality, ignored for png |