# Action Execution Drag Drop

> Perform a bounded desktop or browser drag-and-drop action using verified source and destination targets.

- Skill: `samotech/action-execution-drag-drop` (Agent Skill)
- Install (CLI): `npx get-skill add samotech/action-execution-drag-drop`
- Raw SKILL.md: https://api.skillmd.com/api/skills/samotech/action-execution-drag-drop/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: SamoTech (https://skillmd.com/u/samotech)
- Updated: 2026-11-21
- Page: https://skillmd.com/skills/samotech/action-execution-drag-drop

---


# Drag and Drop

## Description

Move an interface object from a verified source location to a verified destination. Confirm the resulting state because coordinate-only actions are sensitive to layout changes.

## When to Use

- Browser workflows with draggable elements.
- Desktop applications with drag-and-drop controls.
- Moving an explicitly identified item between targets.

## Inputs / outputs / failure modes

| Input | Output | Failure mode |
|---|---|---|
| Source locator | Drag gesture | Source not found |
| Destination locator | Drop result | Wrong target |
| Coordinate fallback | Mouse movement | Layout changed |
| Postcondition | Verified state | Drop silently failed |

## Runnable example

```python
source = page.locator("[data-testid='source']")
target = page.locator("[data-testid='target']")
source.drag_to(target)
assert target.get_attribute("data-state") == "received"
print("drop verified")
```

## Failure modes

- Dragging by stale coordinates.
- Dropping into a destructive target without a boundary.
- Assuming the gesture succeeded without checking state.
- Using an untrusted locator without validation.

## Related

- mouse-input.md
- screenshot-capture.md
- assertion.md

## Evidence

- AI_CONSTITUTION.md
- AGENTS.md
- Repository security and validation workflows

