interact_and_screenshot
Simulate text input or button clicks on a webpage, including React/Vue controlled fields, then capture the resulting screenshot for visual verification.
Instructions
Simulate user input (with React/Vue controlled component penetration) and/or button click on a webpage, then capture a screenshot.
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": {
"url": "<url>",
"outputPath": "<outputPath>"
},
"name": "interact_and_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpr | No | Device scale factor (default: 1) | |
| url | Yes | Target webpage URL | |
| delay | No | Additional delay in milliseconds after interactions (default: 1000) | |
| width | No | Viewport width in pixels (default: 1920) | |
| height | No | Viewport height in pixels (default: 1080) | |
| waitFor | No | Optional CSS selector to wait for before interactions | |
| selector | No | Optional CSS selector to crop to | |
| inputValue | No | Text value to type into the input field | |
| outputPath | Yes | Path where the PNG screenshot should be saved | |
| clickSelector | No | CSS selector of an element to click (e.g. submit button, tab, drawer toggle) | |
| inputSelector | No | CSS selector of an input/textarea to inject text into |