Skip to main content
Glama
Rainmen-xia

Chrome Debug MCP Server

by Rainmen-xia

type_text

Enter text into web forms and input fields during browser automation sessions. This tool simulates keyboard input for automated testing and interaction with web applications.

Instructions

输入文本内容

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes要输入的文本内容

Implementation Reference

  • Core handler implementation that performs the text typing using Puppeteer's page.keyboard.type(), wrapped in doAction for error handling, logging, and screenshot capture.
    async type(text: string): Promise<BrowserActionResult> { return this.doAction(async (page) => { await page.keyboard.type(text); }); }
  • Tool dispatcher in CallToolRequestSchema handler that validates input and delegates to browserSession.type().
    case "type_text": if (!args?.text) { throw new Error("text参数是必需的"); } result = await this.browserSession.type(args.text as string); break;
  • src/index.ts:96-109 (registration)
    Tool registration including name, description, and input schema in the ListToolsRequestSchema response.
    { name: "type_text", description: "输入文本内容", inputSchema: { type: "object", properties: { text: { type: "string", description: "要输入的文本内容", }, }, required: ["text"], }, },
  • Input schema definition for the type_text tool.
    inputSchema: { type: "object", properties: { text: { type: "string", description: "要输入的文本内容", }, }, required: ["text"], }, },
  • Helper function generating success message for type_text tool.
    case "type_text": return "✅ 文本输入完成";

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/Rainmen-xia/chrome-debug-mcp'

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