ok
This commit is contained in:
@@ -1,20 +1,28 @@
|
||||
{
|
||||
"name": "browser_click",
|
||||
"description": "Perform click on a web page. Supports single/double click, different mouse buttons, modifier keys, position offsets, and hold duration.",
|
||||
"description": "Click an element by ref from browser_snapshot. Use this instead of CDP Input.* methods.",
|
||||
"arguments": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"element": {
|
||||
"type": "string",
|
||||
"description": "Human-readable element description used to obtain permission to interact with the element"
|
||||
},
|
||||
"ref": {
|
||||
"type": "string",
|
||||
"description": "Exact target element reference from the page snapshot"
|
||||
"description": "Element ref from browser_snapshot."
|
||||
},
|
||||
"element": {
|
||||
"type": "string",
|
||||
"description": "Human-readable description of the element."
|
||||
},
|
||||
"offsetX": {
|
||||
"type": "number",
|
||||
"description": "Optional x offset from the element center."
|
||||
},
|
||||
"offsetY": {
|
||||
"type": "number",
|
||||
"description": "Optional y offset from the element center."
|
||||
},
|
||||
"doubleClick": {
|
||||
"type": "boolean",
|
||||
"description": "Whether to perform a double click instead of a single click"
|
||||
"description": "When true, double-click the element."
|
||||
},
|
||||
"button": {
|
||||
"type": "string",
|
||||
@@ -23,7 +31,7 @@
|
||||
"right",
|
||||
"middle"
|
||||
],
|
||||
"description": "Mouse button to click. Defaults to \"left\"."
|
||||
"description": "Mouse button. Defaults to left."
|
||||
},
|
||||
"modifiers": {
|
||||
"type": "array",
|
||||
@@ -37,27 +45,22 @@
|
||||
"ControlOrMeta"
|
||||
]
|
||||
},
|
||||
"description": "Modifier keys to hold during click. \"ControlOrMeta\" uses Ctrl on Windows/Linux and Cmd on Mac."
|
||||
},
|
||||
"offsetX": {
|
||||
"type": "number",
|
||||
"description": "Horizontal offset from element's left edge in pixels. If omitted, clicks at horizontal center."
|
||||
},
|
||||
"offsetY": {
|
||||
"type": "number",
|
||||
"description": "Vertical offset from element's top edge in pixels. If omitted, clicks at vertical center."
|
||||
"description": "Optional modifier keys."
|
||||
},
|
||||
"holdDurationMs": {
|
||||
"type": "number",
|
||||
"description": "Duration to hold the mouse button down before releasing, in milliseconds. Useful for long-press interactions. Defaults to 0 (immediate release)."
|
||||
"description": "Optional mouse hold duration before release."
|
||||
},
|
||||
"viewId": {
|
||||
"type": "string",
|
||||
"description": "Target browser tab ID. If omitted, uses the last interacted tab."
|
||||
},
|
||||
"take_screenshot_afterwards": {
|
||||
"type": "boolean",
|
||||
"description": "When true, takes a screenshot after the click completes. Defaults to false."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"element",
|
||||
"ref"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user