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.watch.start('id', { path: 'path' });
console.log(response.watch_id);{
"watch_id": "<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.watch.start('id', { path: 'path' });
console.log(response.watch_id);{
"watch_id": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Browser session ID
Watch started successfully
Unique identifier for the directory watch