playwright_screenshot
Captures a screenshot of the current web page, saves it to your Downloads folder with a sanitized filename, and returns the local path.
Instructions
Save a screenshot of the current page to ~/Downloads and return the path.
The filename is sanitized (directory components stripped, .png enforced) so it cannot escape ~/Downloads.
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": "playwright_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | playwright-session.png |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |