browser_navigate_back
Navigate to the previous page in the browser history to return to prior content or correct navigation errors.
Instructions
Go back
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- index.js:384-389 (registration)Registration of 'browser_navigate_back' tool which calls proxyToolCall.
server.tool('browser_navigate_back', 'Go back', {}, async (args) => { const check = requireActivePage(); if (check) return check; return proxyToolCall('browser_navigate_back', args); }); - index.js:209-237 (handler)The implementation of proxyToolCall which delegates the execution of the tool to an external client.
async function proxyToolCall(toolName, args) { log(`[proxyToolCall] ${toolName} with args: ${JSON.stringify(args)}`); const { client } = await getOrCreateInstance(); log(`[proxyToolCall] got client for port ${assignedPort}`); // Update last used if (assignedPort && instances.has(assignedPort)) { instances.get(assignedPort).lastUsed = Date.now(); } try { log(`[proxyToolCall] Calling client.callTool...`); const result = await client.callTool({ name: toolName, arguments: args || {} }); log(`[proxyToolCall] Result type: ${typeof result}`); log(`[proxyToolCall] Result: ${JSON.stringify(result).slice(0, 500)}`); // The SDK returns { content: [...], isError?: boolean } // We need to return this same format if (result && result.content) { return result; } // Fallback: wrap in content array if needed return { content: [{ type: 'text', text: JSON.stringify(result) }] }; } catch (error) { log(`[proxyToolCall] ERROR: ${error.message}\n${error.stack}`); return {