comet_click
Click elements on the current Comet browser page using text matching or CSS selectors, then wait for the page to settle. Verifies interaction targets for reliable web automation.
Instructions
Click an element on the current Comet page.
Use 'text=...' for visible text matching (preferred over brittle CSS selectors). Waits after click for page to settle. If element not found, returns error — use comet_read_page first to verify the element exists.
Args: selector: CSS selector or 'text=Something' for text matching. wait_after: Seconds to wait after clicking (default 2).
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": {
"selector": "<selector>"
},
"name": "comet_click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | ||
| wait_after | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |