pilot_back
Navigate back in browser history to return to previous web pages during automated browsing sessions.
Instructions
Go back in browser history.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/navigation.ts:32-43 (handler)Handler logic for the pilot_back tool, which navigates the browser back one page in history.
async () => { await bm.ensureBrowser(); try { const page = bm.getPage(); await page.goBack({ waitUntil: 'domcontentloaded', timeout: 15000 }); bm.resetFailures(); return { content: [{ type: 'text' as const, text: `Back → ${page.url()}` }] }; } catch (err) { bm.incrementFailures(); return { content: [{ type: 'text' as const, text: wrapError(err) }], isError: true }; } } - src/tools/navigation.ts:28-44 (registration)MCP tool registration for pilot_back.
server.tool( 'pilot_back', 'Go back in browser history.', {}, async () => { await bm.ensureBrowser(); try { const page = bm.getPage(); await page.goBack({ waitUntil: 'domcontentloaded', timeout: 15000 }); bm.resetFailures(); return { content: [{ type: 'text' as const, text: `Back → ${page.url()}` }] }; } catch (err) { bm.incrementFailures(); return { content: [{ type: 'text' as const, text: wrapError(err) }], isError: true }; } } );