Skip to main content
Glama

browser_run_code

Execute Playwright JavaScript code to automate browser interactions like clicking buttons, filling forms, and extracting page data for web testing and automation tasks.

Instructions

Run Playwright code snippet

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesA JavaScript function containing Playwright code to execute. It will be invoked with a single argument, page, which you can use for any page interaction. For example: `async (page) => { await page.getByRole('button', { name: 'Submit' }).click(); return await page.title(); }`

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/Angeluis001/playwright-mcp'

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