take_screenshot
Capture full-page or element-specific screenshots in a DICloak browser environment by specifying an environment ID and optional CSS selector.
Instructions
Take a screenshot of the current page or a specific element in the browser environment (if you want to see the page, recommend to use chrome_get_web_content first)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"envId": "<envId>"
},
"name": "take_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name for the screenshot, if saving as PNG | |
| envId | Yes | Environment ID for the browser environment to operate. | |
| width | No | Width in pixels, skip it if not needed | |
| height | No | Height in pixels, skip it if not needed | |
| savePng | No | Save screenshot as PNG file (default: true), if you want to see the page, recommend set this to be false, and set storeBase64 to be true | |
| fullPage | No | Store screenshot of the entire page (default: true) | |
| selector | No | CSS selector for element to screenshot | |
| storeBase64 | No | Return screenshot in base64 format (default: false) if you want to see the page, recommend set this to be true |