Skip to main content
Glama

browser_maximize

Maximize the browser window to full screen during automated web testing and browser interactions, ensuring optimal visibility of web content for testing scenarios.

Instructions

Maximize the browser window

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The inline handler function for the 'browser_maximize' tool. It retrieves the current browser driver from the state manager, maximizes the window using WebDriver's manage().window().maximize(), and returns a success or error message.
    server.tool('browser_maximize', 'Maximize the browser window', {}, async () => { try { const driver = stateManager.getDriver(); await driver.manage().window().maximize(); return { content: [{ type: 'text', text: `Browser window maximised` }], }; } catch (e) { return { content: [ { type: 'text', text: `Error maximising browser window: ${(e as Error).message}`, }, ], }; } });

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/pshivapr/selenium-mcp'

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