browser_screenshot
Take a screenshot of a web page or a specific element. Supports full page capture for Chrome, element selection by CSS, and saving to a file.
Instructions
Take a screenshot of the page or a specific element.
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": {
"session_id": "<session_id>"
},
"name": "browser_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | The session ID | |
| save_path | No | File path to save screenshot (optional) | |
| selector | No | Element selector for element screenshot (optional) | |
| by | No | Selector type if selector is provided | css |
| full_page | No | Capture full scrollable page (Chrome only) | |
| filename | No | Custom filename (used with configured screenshot_dir) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |