browser_maximize
Maximizes the browser window to full screen for better visibility and interaction during web automation tasks.
Instructions
Maximize the browser window
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/browserTools.ts:164-181 (handler)Inline handler for the 'browser_maximize' tool. Retrieves the current WebDriver instance from the state manager and calls maximize() on the window manager to maximize the browser window. Returns 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}`, }, ], }; } });