input
Perform browser input actions such as click, type, press, hover, focus, drag, scroll, and pinch zoom via CSS selectors.
Instructions
Perform browser input actions. Actions: click (click element), type (type text into element), press (press keyboard key), hover (hover over element), focus (focus element by selector), focusNext (Tab to next focusable element), focusPrevious (Shift+Tab to previous focusable element), drag (drag from one point to another), scroll (scroll wheel at position), mousemove (move mouse to position), pinch (pinch zoom gesture)
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>",
"connectionReason": "<connectionReason>"
},
"name": "input"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| to | No | ||
| key | No | ||
| from | No | ||
| text | No | ||
| count | No | Tab count | |
| delay | No | Keystroke delay ms | |
| steps | No | Drag smoothness | |
| action | Yes | ||
| append | No | Append text instead of replacing (default: false) | |
| deltaX | No | Horizontal scroll px | |
| deltaY | No | Vertical scroll px | |
| selector | No | CSS selector. Supports :has-text("x"), :text("x") | |
| clickCount | No | ||
| scaleFactor | No | >1 zoom in, <1 zoom out | |
| handleModals | No | ||
| detectChanges | No | ||
| settleTimeout | No | DOM settle timeout ms | |
| dismissStrategy | No | ||
| connectionReason | Yes |