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.stdin('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', {
id: 'id',
data_b64: 'data_b64',
});
console.log(response.written_bytes);{
"written_bytes": 123
}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.stdin('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', {
id: 'id',
data_b64: 'data_b64',
});
console.log(response.written_bytes);{
"written_bytes": 123
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Data to write to the process standard input.
Base64-encoded data to write.
Bytes written
Result of writing to stdin.
Number of bytes written.