tb_screenshot
Capture a PNG screenshot of the active browser session and save it to disk with a clickable file link. Use the optional savePath to choose the file or directory location.
Instructions
Capture a PNG screenshot of the active browser session. Returns a base64 image content block AND saves the PNG to disk, returning a clickable file:// link — many MCP clients (e.g. Claude Desktop) don't render tool-returned images inline, so the saved file is the reliable way for a human to view it. Pass savePath to control where it's written (a .png file path, or a directory); otherwise it goes to the OS temp dir.
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": {
"sessionId": "<sessionId>"
},
"name": "tb_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| savePath | No | Where to write the PNG: a full file path ending in .png, or a directory (a filename is generated). Relative paths resolve against the server's working directory. Defaults to the OS temp dir. | |
| sessionId | Yes | Session ID from tb_openBrowser |