spa_drag
Drag a specified CSS selector element and drop it onto a target element in a single-page app. Supports optional URL navigation and screenshot capture.
Instructions
Drag an element and drop it on another element.
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>",
"target": "<target>"
},
"name": "spa_drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL to navigate to first (optional) | |
| target | Yes | CSS selector for drop target | |
| session | No | Session ID | default |
| selector | Yes | CSS selector for element to drag | |
| screenshot | No | Take screenshot after action |