chrome_screenshot
Capture the current page as a PNG screenshot using a Chrome session ID. Optionally save to a specified path.
Instructions
Capture a screenshot of the active page in a Chrome CDP session.
Args: session_id: Session returned by chrome_open_session output_path: Optional file path for output PNG
Returns: Saved path or error message
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": "chrome_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |