interact
Simulate user actions like click, type, scroll, hover, select, and key press on a page, then return a screenshot to test UI flows and states.
Instructions
Interact with the page: click, type, scroll, hover, select, press_key. Returns a screenshot after the action. Use to test user flows and UI states.
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": {
"action": "<action>"
},
"name": "interact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Page URL. Auto-detected if omitted. | |
| text | No | Text to type (for 'type') or key to press (for 'press_key'). | |
| wait | No | Ms to wait after action before screenshot. Default: 500. Increase for slow animations. | |
| value | No | Value to select (for 'select' action in dropdowns). | |
| action | Yes | Action to perform. | |
| amount | No | Scroll amount in pixels. Default: 500. | |
| selector | No | CSS selector of target element. Required for click, type, hover, select. | |
| viewport | No | Viewport size. Default: desktop. | |
| direction | No | Scroll direction. Default: down. | |
| screenshot | No | Return screenshot after action. Default: true. |