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.downloadDirZip('id', { path: '/J!' });
console.log(response);
const content = await response.blob();
console.log(content);"<string>"Returns a ZIP file containing the contents of the specified directory.
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.downloadDirZip('id', { path: '/J!' });
console.log(response);
const content = await response.blob();
console.log(content);"<string>"Documentation Index
Fetch the complete documentation index at: https://tbd-6fc993ce-hypeship-document-pool-profile-update-behavior.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Browser session ID
Absolute directory path to archive and download.
^/.*ZIP archive of the requested directory
The response is of type file.