Skip to main content
POST
/
browsers
/
{id}
/
process
/
{process_id}
/
resize
JavaScript
import Kernel from '@onkernel/sdk';

const client = new Kernel({
  apiKey: process.env['KERNEL_API_KEY'], // This is the default and can be omitted
});

const response = await client.browsers.process.resize('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', {
  id: 'id',
  cols: 1,
  rows: 1,
});

console.log(response.ok);
{
  "ok": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Browser session ID

process_id
string<uuid>
required

Body

application/json

Resize a PTY-backed process terminal.

rows
integer
required

New terminal rows.

Required range: 1 <= x <= 65535
cols
integer
required

New terminal columns.

Required range: 1 <= x <= 65535

Response

OK

Generic OK response.

ok
boolean
default:true
required

Indicates success.