computer
Control a browser tab with mouse, keyboard, and screenshots, receiving clear feedback on navigation, dialogs, downloads, or no-ops while blocked elements are refused.
Instructions
Mouse, keyboard and screenshots in a tab. Every click / key reply says what the page did: navigated, page changed, opened tab N, dialog (and how it was answered), download, or nothing happened. Disabled, hidden or covered elements are refused, not clicked. Actions:
left_click, right_click, double_click, triple_click:
ref(from read_page / find) orcoordinate[x, y] from the last screenshot; optionalmodifiers("ctrl+shift").type:
textgoes into the focused element (or intoref, which is clicked first). Pasted by default;per_key: truetypes key by key with human delays, for OTP boxes, autocomplete and sites that watch keydown.key:
textis a key or chord ("Enter", "ctrl+a", "cmd+k"), several separated by spaces;repeat.scroll:
scroll_direction(up/down/left/right),scroll_amountin wheel notches (default 3), atcoordinate/ref(default: the centre).scroll_to: bring
refinto view.left_click_drag: from
start_coordinateorstart_reftocoordinateorref.hover:
reforcoordinate.screenshot: the tab's viewport as an image, sized for you (
scale0.1-1 shrinks it further). Coordinates you pass afterwards are in this image's pixels.zoom:
region[x0, y0, x1, y1] of the last screenshot at full detail, for reading small text.wait:
durationseconds (at most 30).
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 |
|---|---|---|---|
| ref | No | Element ref from read_page / find (e12, f1e12). | |
| text | No | Text for type; key or chord for key. | |
| scale | No | screenshot: shrink further (1 = the automatic size). | |
| tabId | No | Tab to act on, from tabs_context. Omitted: this session's active tab. Pass it always when several agents share the session. | |
| action | Yes | ||
| region | No | zoom: [x0, y0, x1, y1] in pixels of the last screenshot. | |
| repeat | No | key: how many times. | |
| per_key | No | type: key by key instead of paste. | |
| duration | No | wait: seconds. | |
| modifiers | No | Keys held during a click: "ctrl", "shift", "alt", "cmd", joined with +. | |
| start_ref | No | left_click_drag: the element the drag starts on. | |
| coordinate | No | [x, y] in pixels of the last screenshot. | |
| reveal_values | No | Show secrets (cookie values, tokens, passwords) instead of masking them. They end up in the transcript; use only when the value itself is needed. | |
| scroll_amount | No | Wheel notches (about 100 px each). | |
| scroll_direction | No | ||
| start_coordinate | No | left_click_drag: where the drag starts. |