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);
Copy
Ask AI
{ "watch_id": "<string>"}
Browsers
Watch a directory for changes
POST
/
browsers
/
{id}
/
fs
/
watch
JavaScript
Copy
Ask AI
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);