playwright_drag
Drag a web element to a specified target location using CSS selectors for precise browser automation with Playwright MCP Server.
Instructions
Drag an element to a target location
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": {
"sourceSelector": "<sourceSelector>",
"targetSelector": "<targetSelector>"
},
"name": "playwright_drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sourceSelector | Yes | CSS selector for the element to drag | |
| targetSelector | Yes | CSS selector for the target location |