## Drag `client.computers.drag(stringid, ComputerDragParamsbody, RequestOptionsoptions?): ActionResult` **post** `/computers/{id}/drag` Perform a click-and-drag action from (x1,y1) to (x2,y2). Coordinates are screenshot pixel positions. Optionally specify tab_id (browser sessions only) ### Parameters - `id: string` - `body: ComputerDragParams` - `tab_id?: string` - `x1?: number` - `x2?: number` - `y1?: number` - `y2?: number` ### Returns - `ActionResult` - `error_message?: string` - `executed_tab_id?: string` - `page_context?: V2GoBackendInternalTypesPageContext` - `device_scale_factor?: number` - `is_main_tab?: boolean` - `page_height?: number` - `page_width?: number` - `scroll_x?: number` - `scroll_y?: number` - `tab_id?: string` - `title?: string` - `url?: string` - `viewport_height?: number` - `viewport_width?: number` - `request_id?: string` - `result?: Record` - `status?: string` - `timestamp?: string` ### Example ```typescript import Lightcone from '@tzafon/lightcone'; const client = new Lightcone({ apiKey: process.env['TZAFON_API_KEY'], // This is the default and can be omitted }); const actionResult = await client.computers.drag('id'); console.log(actionResult.executed_tab_id); ```