browser_drag
Initiates a drag-and-drop action from a source element to a target element using CSS selectors.
Instructions
Drag from one element to another.
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": {
"source_selector": "<source_selector>",
"target_selector": "<target_selector>"
},
"name": "browser_drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_id | No | Stable tab id from browser_tabs list; preferred when multiple agents run in parallel. Mutually exclusive with tab_index. | |
| tab_index | No | Tab index from browser_tabs list. If omitted, uses the lowest-index tab. Mutually exclusive with tab_id. | |
| source_selector | Yes | CSS selector of element to drag from. | |
| target_selector | Yes | CSS selector of element to drag to. |