take_screenshot
Capture a screenshot of the current browser window for debugging or visual analysis. Screenshots are saved to a configurable directory.
Instructions
Capture a screenshot of the current browser window.
Purpose
Useful for debugging, failure reporting, or visual analysis. Screenshots are saved to the directory set by the MCP_SCREENSHOT_DIR environment variable (default: system temp dir).
Parameters
session_id : str Active browser session identifier.
Returns
dict { "session_id": str, screenshot_path: str, "status": str, "message": str }
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": "take_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes |