act
Operate a browser or desktop element through its accessibility interface: press, set values, focus, or scroll into view without moving the pointer or sending keystrokes.
Instructions
Operate an element through the app's own accessibility interface — no pointer, no
keyboard, no coordinates. element is an id from a parse_screen/find_elements whose
"source" was browser-dom or at-spi (not vision).
action='press' activate it (button, link, checkbox, tab, menu item). Browser: a
real, trusted click delivered to the page without moving the X
pointer ("method": "cdp-input"); when the element is covered or
out of view its click handler is invoked directly instead
("method": "dom-click", "synthetic": true — some pages ignore
those). Native: the element's AT-SPI action ("at_spi_action").
action='set_value' set value: text for a field (browser: trusted insert-text
events, then a direct set if the page reformatted it), an
option's text for a , 'true'/'false' for a checkbox or
radio, a number for a slider. Replaces the old content.
action='focus' give it the keyboard focus (then type_text/press_keys).
action='scroll_into_view' bring an off-screen element into the viewport.
Returns {"ok", "action", "instance", "element", "label", "type", "did", "method",
"before": {states, value}, "after": {states, value}, "center"?, "verified"?: true|false|null
(set_value: the value read back equals value; null = unreadable, e.g. a password),
"scrolled"?, "synthetic"?, "note"?}. Compare before/after to see the effect (e.g. "checked"
appearing). Fails (isError), nothing done, when: the id is unknown or from a vision parse;
the element is gone ("stale": true — find_elements again); it is disabled or read-only; a
password field without allow_password=true; the app exposes no such action for it (then
click_element(id) / fill(element=id) use the pointer and keyboard instead); a has
no such option ("options" lists them). Prefer fill() when the page must see real
keystrokes (autocomplete, per-key validation). observe/settle_ms/observe_region: see
click().
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": {
"element": "<element>"
},
"name": "act"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | No | ||
| action | No | press | |
| element | Yes | ||
| observe | No | none | |
| instance | No | ||
| settle_ms | No | ||
| allow_password | No | ||
| observe_region | No |