browser_dispatch_event
Dispatch custom events with optional initialization parameters on target elements to simulate user interactions and trigger event handlers.
Instructions
Dispatches a custom event with optional custom initialization parameters on a target element.
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": {
"target": "<target>",
"type": "<type>"
},
"name": "browser_dispatch_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Event type string (e.g., 'change', 'click', 'input'). | |
| target | Yes | Selector or snapshot ID of the target element. | |
| eventInit | No | Optional event initialization options. |