playwright-browser-type

To type text into an editable field, enter text into inputs or textareas.

⭐6stars🔀3forks📁View on GitHub🕐Updated Jan 7, 2026

When & Why to Use This Skill

The playwright-browser-type skill enables AI agents to interact seamlessly with web interfaces by automating text entry into editable fields, inputs, and textareas. Built on the Playwright framework, it provides granular control over browser interactions, including the ability to simulate human-like typing speeds and trigger form submissions, making it an essential tool for robust web automation and data entry tasks.

Use Cases

  • Automated Form Filling: Streamline data entry by automatically populating registration forms, contact details, or surveys on websites.
  • Automated Login Procedures: Facilitate secure and efficient access to web-based platforms by programmatically entering usernames and passwords.
  • Web Search and Navigation: Enhance research workflows by typing specific queries into search bars or navigation menus across various web applications.
  • Software QA and UI Testing: Support quality assurance teams by simulating user input to verify form validations, UI responsiveness, and interactive elements.
  • Human-Like Interaction: Use the 'slow typing' feature to bypass basic bot detection or to trigger specific JavaScript event listeners that require individual keystrokes.
nameplaywright-browser-type
description"To type text into an editable field, enter text into inputs or textareas."

Usage

Use the MCP tool dev-swarm.request to send the payload as a JSON string:

{"server_id":"playwright","tool_name":"browser_type","arguments":{}}

Tool Description

Type text into editable element

Arguments Schema

The schema below describes the arguments object in the request payload.

{
  "type": "object",
  "properties": {
    "element": {
      "type": "string",
      "description": "Human-readable element description used to obtain permission to interact with the element"
    },
    "ref": {
      "type": "string",
      "description": "Exact target element reference from the page snapshot"
    },
    "text": {
      "type": "string",
      "description": "Text to type into the element"
    },
    "submit": {
      "type": "boolean",
      "description": "Whether to submit entered text (press Enter after)"
    },
    "slowly": {
      "type": "boolean",
      "description": "Whether to type one character at a time. Useful for triggering key handlers in the page. By default entire text is filled in at once."
    }
  },
  "required": [
    "element",
    "ref",
    "text"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Background Tasks

If the tool returns a task id, poll the task status via the MCP request tool:

{"server_id":"playwright","method":"tasks/status","params":{"task_id":"<task_id>"}}