pilot_reload
Reload the current web page in the browser automation session to refresh content or resolve loading issues.
Instructions
Reload the current page.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/navigation.ts:64-80 (handler)Implementation of the pilot_reload tool handler.
server.tool( 'pilot_reload', 'Reload the current page.', {}, async () => { await bm.ensureBrowser(); try { const page = bm.getPage(); await page.reload({ waitUntil: 'domcontentloaded', timeout: 15000 }); bm.resetFailures(); return { content: [{ type: 'text' as const, text: `Reloaded ${page.url()}` }] }; } catch (err) { bm.incrementFailures(); return { content: [{ type: 'text' as const, text: wrapError(err) }], isError: true }; } } );