computer
Automates browser mouse and keyboard actions—clicking, dragging, hovering, typing, scrolling, waiting, and taking screenshots—using coordinates or element refs to interact with visible pages.
Instructions
Mouse/keyboard automation in the browser window. Actions: screenshot, zoom, left_click, double_click, triple_click, right_click, middle_click, left_click_drag, hover, scroll_to, type, key, scroll, wait, left_mouse_down, left_mouse_up. Clicks accept coordinate or ref.
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": "computer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ms | No | Milliseconds to wait. | |
| ref | No | A ref_N from read_page/find. | |
| text | No | Text to type, or key/combo to press. | |
| tabId | No | Tab ID to target. Omit to act on the current tab. | |
| action | Yes | The action to perform. | |
| region | No | ||
| direction | No | ||
| coordinate | No | [x, y] in CSS pixels. | |
| scroll_amount | No | Scroll amount in pixels. | |
| start_coordinate | No | Start [x, y] in CSS pixels for left_click_drag. |