browser_refresh
Refresh the current page in a specific browser instance using the Concurrent Browser MCP server to manage multiple parallel sessions efficiently.
Instructions
Refresh the current page
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instanceId | Yes | Instance ID |
Implementation Reference
- src/tools.ts:672-691 (handler)The core handler function for 'browser_refresh' that retrieves the browser instance and calls page.reload() to refresh the page, returning success or error status.private async refresh(instanceId: string): Promise<ToolResult> { const instance = this.browserManager.getInstance(instanceId); if (!instance) { return { success: false, error: `Instance ${instanceId} not found` }; } try { await instance.page.reload(); return { success: true, data: { url: instance.page.url() }, instanceId }; } catch (error) { return { success: false, error: `Refresh failed: ${error instanceof Error ? error.message : error}`, instanceId }; }
- src/tools.ts:150-163 (registration)Registers the 'browser_refresh' tool in the getTools() array, including name, description, and input schema requiring instanceId.{ name: 'browser_refresh', description: 'Refresh the current page', inputSchema: { type: 'object', properties: { instanceId: { type: 'string', description: 'Instance ID' } }, required: ['instanceId'] } },
- src/tools.ts:530-532 (handler)Switch case in executeTools method that dispatches 'browser_refresh' calls to the refresh handler.case 'browser_refresh': return await this.refresh(args.instanceId);