This commit is contained in:
ray zhou
2026-05-29 17:23:17 +08:00
parent f71a5c59af
commit 1bcb6120dd
139 changed files with 4229 additions and 523 deletions

View File

@@ -1,28 +1,32 @@
{
"name": "browser_drag",
"description": "Perform a drag and drop operation. Drags from a source element to a target element or coordinates.",
"description": "Drag an element by ref to another ref or viewport coordinates.",
"arguments": {
"type": "object",
"properties": {
"sourceRef": {
"type": "string",
"description": "Reference of the element to drag from"
"description": "Source element ref from browser_snapshot."
},
"targetRef": {
"type": "string",
"description": "Reference of the element to drop onto"
"description": "Optional target element ref from browser_snapshot."
},
"targetX": {
"type": "number",
"description": "X coordinate to drop at (relative to viewport). Use with targetY instead of targetRef for coordinate-based drops."
"description": "Optional target viewport x coordinate."
},
"targetY": {
"type": "number",
"description": "Y coordinate to drop at (relative to viewport). Use with targetX instead of targetRef for coordinate-based drops."
"description": "Optional target viewport y coordinate."
},
"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 drag completes. Defaults to false."
}
},
"required": [