tab_screenshot
Capture an image of a tab's visible area to inspect visual layout such as charts, images, styling, or canvas apps. Makes the tab active first and returns the screenshot as an attachment.
Instructions
Take a screenshot of the visible part of a tab in the user's browser, returned as an image attachment. The tab is made active in its window first. Use it when the visual layout matters (charts, images, styling, canvas apps); for text and controls, tab_read is cheaper and gives refs to act on. On a canvas page, click what it shows with tab_click x and y: the result gives the viewport size in CSS pixels to scale image pixels by.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "tab_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | No | Tab id from tab_list or tab_read. Defaults to the active tab of the browser window the user used last. |