Get screenshot
get_screenshotReturn one screenshot from a session as an MCP image. Required: sessionId from the run, and fileName from the screenshot file names get_run lists. Does not spend credits. The image is refused when it is larger than 5 MB. When the plan's retention window has deleted that session's screenshots, the call fails and says when they were deleted. Private sessions belonging to someone else are not returned; a public session is readable by id, the same as its report page.
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>",
"fileName": "<fileName>"
},
"name": "get_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileName | Yes | ||
| sessionId | Yes | Session ID |