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.fs.readFile('id', { path: '/J!' });
console.log(response);
const content = await response.blob();
console.log(content);"<string>"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.fs.readFile('id', { path: '/J!' });
console.log(response);
const content = await response.blob();
console.log(content);"<string>"Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Browser session ID
Absolute file path to read.
File read successfully
The response is of type file.