Files
cursor/projects/Users-ray-Documents-project-www-slot-backend/mcps/cursor-ide-browser/tools/browser_drag.json
2026-05-21 18:16:26 +08:00

32 lines
1.0 KiB
JSON

{
"name": "browser_drag",
"description": "Perform a drag and drop operation. Drags from a source element to a target element or coordinates.",
"arguments": {
"type": "object",
"properties": {
"sourceRef": {
"type": "string",
"description": "Reference of the element to drag from"
},
"targetRef": {
"type": "string",
"description": "Reference of the element to drop onto"
},
"targetX": {
"type": "number",
"description": "X coordinate to drop at (relative to viewport). Use with targetY instead of targetRef for coordinate-based drops."
},
"targetY": {
"type": "number",
"description": "Y coordinate to drop at (relative to viewport). Use with targetX instead of targetRef for coordinate-based drops."
},
"viewId": {
"type": "string",
"description": "Target browser tab ID. If omitted, uses the last interacted tab."
}
},
"required": [
"sourceRef"
]
}
}