Playwright MCP Server

by BhanuTJ93
MIT License
18,115
  • Linux
  • Apple

playwright_press_key

Simulate keyboard key presses in a browser environment. Specify the key (e.g., 'Enter', 'a') and optionally focus on a specific element using a CSS selector. Enables interaction with web pages for automation tasks.

Instructions

Press a keyboard key

Input Schema

NameRequiredDescriptionDefault
keyYesKey to press (e.g. 'Enter', 'ArrowDown', 'a')
selectorNoOptional CSS selector to focus before pressing key

Input Schema (JSON Schema)

{ "properties": { "key": { "description": "Key to press (e.g. 'Enter', 'ArrowDown', 'a')", "type": "string" }, "selector": { "description": "Optional CSS selector to focus before pressing key", "type": "string" } }, "required": [ "key" ], "type": "object" }

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/BhanuTJ93/MCP'

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