Skip to main content
Glama

reload

Reload specific Firefox browser tabs using tab IDs to refresh content during automation or debugging processes on the Firefox MCP Server.

Instructions

Reload page

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tabIdNo

Implementation Reference

  • The main handler function for the 'reload' tool. It ensures the browser is running, gets the page for the specified or active tabId, calls page.reload() using Playwright, and returns a success message.
    async reload(args = {}) { this.ensureBrowserRunning(); const { tabId } = args; const page = this.getPage(tabId); await page.reload(); return { content: [{ type: 'text', text: `Page reloaded in tab '${tabId || this.activeTabId}'` }] }; }
  • Tool registration entry including name, description, and input schema (optional tabId string). This defines the tool for the MCP server.
    { name: 'reload', description: 'Reload page', inputSchema: { type: 'object', properties: { tabId: { type: 'string' } } }
  • Dispatch logic in the MCP CallToolRequestHandler switch statement that routes 'reload' calls to the handler method.
    case 'reload': return await this.reload(args);
  • Input schema definition for the reload tool, allowing optional tabId.
    inputSchema: { type: 'object', properties: { tabId: { type: 'string' } } }

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/JediLuke/firefox-mcp-server'

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