## Viewport `client.computers.viewport(stringid, ComputerViewportParamsbody, RequestOptionsoptions?): ActionResult` **post** `/computers/{id}/viewport` Change the browser viewport dimensions and scale factor. Optionally specify tab_id (browser sessions only) ### Parameters - `id: string` - `body: ComputerViewportParams` - `height?: number` - `scale_factor?: number` - `tab_id?: string` - `width?: 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.viewport('id'); console.log(actionResult.executed_tab_id); ```