Skip to main content
Glama

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
NameRequiredDescriptionDefault
instanceIdYesInstance ID

Implementation Reference

  • 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'] } },
  • Switch case in executeTools method that dispatches 'browser_refresh' calls to the refresh handler.
    case 'browser_refresh': return await this.refresh(args.instanceId);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sailaoda/concurrent-browser-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server