Skip to main content
Glama

Puppeteer-Extra MCP Server

fill.ts827 B
import { mcpServer } from '@/index'; import z from 'zod'; import { getBrowser } from '@/utils/browserManager'; mcpServer.tool( 'puppeteer_fill', 'Fill out an input field', { selector: z.string().describe('CSS selector for input field'), value: z.string().describe('Value to fill'), }, async ({ selector, value }) => { const browser = getBrowser(); try { await browser.fill(selector, value); return { content: [ { type: 'text', text: `Filled ${selector} with: ${value}`, }, ], }; } catch (error) { return { content: [ { type: 'text', text: `Failed to fill ${selector}: ${(error as Error).message}`, }, ], isError: true, }; } }, );

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/gpaul-faldin/MCP_puppeteer_extra'

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