interact_with_element
Perform actions on browser page elements: click, type, hover, or select options. Specify a CSS selector and optional value for the action.
Instructions
[LEGACY] Interact with a page element. Use interact_with_page instead.
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": {
"session_id": "<session_id>",
"action": "<action>",
"selector": "<selector>"
},
"name": "interact_with_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | Browser session ID to interact with. Session must already exist | |
| action | Yes | Type of interaction: 'click' for clicking elements, 'type' for entering text, 'hover' for mouse hover, 'select' for dropdown selection | |
| selector | Yes | CSS selector for the target element. Must uniquely identify the element to interact with | |
| value | No | Value to use for the action. For 'type': text to enter, for 'select': option value(s) to select. Not used for 'click' or 'hover' |