Skip to main content
Glama

browser_launch

Launch a new browser instance to capture screenshots of web pages for automated testing and monitoring purposes.

Instructions

Launch a new browser instance

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
headlessNoRun browser in headless mode

Implementation Reference

  • Handler function for the 'browser_launch' tool. Closes any existing browser, launches a new Puppeteer browser with the specified headless mode (default true), creates a new page, and returns a success message.
    case 'browser_launch': { const headless = args?.headless !== false; if (browserState.browser) { await browserState.browser.close(); } browserState.browser = await puppeteer.launch({ headless, args: ['--no-sandbox', '--disable-setuid-sandbox'], }); browserState.page = await browserState.browser.newPage(); return { content: [ { type: 'text', text: 'Browser launched successfully', }, ], }; }
  • src/index.ts:93-106 (registration)
    Tool registration for 'browser_launch' in the list of tools, including description and input schema specifying optional 'headless' boolean parameter.
    { name: 'browser_launch', description: 'Launch a new browser instance', inputSchema: { type: 'object', properties: { headless: { type: 'boolean', description: 'Run browser in headless mode', default: true, }, }, }, },

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/seabassgonzalez/mcp-browser-screenshot'

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