screenshot
screenshotJPEG screenshot (viewport, ref, region or full page). Costs many tokens: snapshot is cheaper.
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>",
"secret": "<secret>"
},
"name": "screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | return the page as PDF instead | ||
| ref | No | ref from the snapshot, e.g. e12 | |
| region | No | {x,y,w,h} viewport pixels | |
| secret | Yes | session secret from create_session | |
| full_res | No | up to 1920 px wide instead of 1024 | |
| full_page | No | ||
| session_id | Yes | session id from create_session |