cdp_interact
Perform browser automation actions like clicking, typing, and uploading files using CSS selectors or text matching to interact with web elements.
Instructions
Interact with elements: click, type, upload files, select options, etc.
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>",
"selector": "<selector>"
},
"name": "cdp_interact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to perform | |
| selector | Yes | CSS selector OR text= prefix to find by text (e.g., "text=Submit", "text=Expand all") | |
| value | No | Value for type/select actions | |
| file_path | No | File path for upload action | |
| trigger_selector | No | CSS selector for button to click before upload (for hidden file inputs) | |
| key | No | Key for press action (e.g., Enter, Tab) | |
| delay | No | Delay between keystrokes in ms |