Drag by Description
Drag by Description
Drag between elements using natural language descriptions
POST
Drag by Description
Drag from one element to another, both described in natural language. Uses vision AI to find both elements and drag between them.Documentation Index
Fetch the complete documentation index at: https://docs.tapkit.ai/llms.txt
Use this file to discover all available pages before exploring further.
Request
Path Parameters
| Parameter | Type | Description |
|---|---|---|
phone_id | string | The phone identifier |
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
async | boolean | false | Return immediately with job ID |
Request Body
| Field | Type | Description |
|---|---|---|
from_selector | string | Natural language description of where to start dragging |
to_selector | string | Natural language description of where to drag to |
Response
Synchronous
Asynchronous
Examples
Adjust a Slider
SDK Usage
The Python SDK provides this through thedrag() method with string arguments:
When using the SDK, both arguments must be the same type - either both selectors (strings) or both coordinates. You cannot mix them.
Related Endpoints
- Drag - Drag between specific coordinates
- Hold and Drag - Hold before dragging