Skip to main content
The Drag and Drop tool allows the agent to drag elements from one location to another on the page. This is useful for interacting with drag-and-drop interfaces like file uploaders, sortable lists, kanban boards, or any UI that requires drag interactions.

Usage

from smooth import SmoothClient

client = SmoothClient()

task = client.run(
    task="Drag the item from the source container to the target container",
    additional_tools={
        "drag_drop": None
    }
)

Parameters

This tool has no configurable parameters. Pass None to enable it with default behavior.

Examples

Reordering items in a list:
task = client.run(
    task="Drag the 'High Priority' task to the top of the list",
    additional_tools={
        "drag_drop": None
    }
)
Moving cards on a kanban board:
task = client.run(
    task="Drag the task card from 'To Do' column to 'In Progress'",
    additional_tools={
        "drag_drop": None
    }
)