show_browser
Brings the Strudel.cc browser window to the foreground to provide visual feedback during AI-powered music generation and live coding sessions.
Instructions
Bring browser window to foreground for visual feedback
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/StrudelController.ts:657-669 (handler)Core handler implementation that brings the Playwright-controlled browser window to the foreground using page.bringToFront().async showBrowser(): Promise<string> { if (!this._page) { throw new Error('Browser not initialized. Run init tool first.'); } try { await this._page.bringToFront(); return 'Browser window brought to foreground'; } catch (error: any) { this.logger.error('Failed to show browser', error); throw new Error(`Failed to show browser: ${error.message}`); } }
- src/server/EnhancedMCPServerFixed.ts:520-523 (registration)MCP tool registration defining the show_browser tool with empty input schema (no parameters required).name: 'show_browser', description: 'Bring browser window to foreground for visual feedback', inputSchema: { type: 'object', properties: {} } },
- Server-side tool dispatcher that validates initialization state and delegates to StrudelController.showBrowser().case 'show_browser': if (!this.isInitialized) { return 'Browser not initialized. Run init first.'; } return await this.controller.showBrowser();