screenshot
Capture a full page or a single element via CSS selector or ref, returning the image inline plus saved path—no extra Read call needed. Set return_image=false for path only.
Instructions
Screenshot the page, or a single element with ref/selector (great for documenting one modal). Returns the IMAGE inline — no second Read call — plus the saved path. Set return_image=false for path only.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Snapshot ref — capture just that element. | |
| name | No | Filename prefix | page |
| selector | No | CSS selector — capture just that element (ignored if ref is set). | |
| full_page | No | Full scrollable page (ignored when ref/selector is set) | |
| return_image | No | Embed the PNG in the response. false = only save to disk. |