Files
antigravity-plugin-browser-…/mcp/chrome_screenshot.json
T

51 lines
2.1 KiB
JSON

{
"name": "chrome_screenshot",
"description": "[Prefer read_page over taking a screenshot and Prefer chrome_computer] Take a screenshot of the current page or a specific element. For new usage, use chrome_computer with action=\"screenshot\". Use this tool if you need advanced options.",
"parameters": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name for the screenshot, if saving as PNG"
},
"selector": {
"type": "string",
"description": "CSS selector for element to screenshot"
},
"tabId": {
"type": "number",
"description": "Target tab ID to capture from (default: active tab)."
},
"windowId": {
"type": "number",
"description": "Target window ID to pick active tab from when tabId is not provided."
},
"background": {
"type": "boolean",
"description": "Deprecated and no longer required: simple viewport captures now always use CDP, which targets the tab directly and never brings it to the foreground. This parameter is accepted for compatibility and ignored. Element and full-page capture use the content-script path, which may scroll the page but does not focus the window."
},
"width": {
"type": "number",
"description": "Width in pixels (default: 800)"
},
"height": {
"type": "number",
"description": "Height in pixels (default: 600)"
},
"storeBase64": {
"type": "boolean",
"description": "Return screenshot inline as a base64 data URL (default: false). WARNING: base64 payloads are large and can exceed the tool-result token limit and are not renderable as an image by most MCP clients. Leave this false; use savePng + fullPath and Read the file instead."
},
"fullPage": {
"type": "boolean",
"description": "Store screenshot of the entire page (default: true)"
},
"savePng": {
"type": "boolean",
"description": "Save screenshot as a PNG file and return its fullPath (default: true). Recommended: keep this true and storeBase64 false, then Read the returned fullPath to view the image \u2014 this avoids blowing the context/token budget with an inline base64 blob."
}
},
"required": []
}
}