screenshot
Capture the current page or a specific element from the latest snapshot, returning the image and saved file path so users can view exactly what the agent sees.
Instructions
Screenshot the current page, or just one element (ref from the latest snapshot).
The image is returned to you AND saved to a file whose path is included; when the user wants to see something, show them that path.
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": "screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ||
| full_page | No | ||
| session_id | Yes |