Playwright MCP Server

start_codegen_session

Initiate a code generation session to record Playwright actions, enabling automated test script creation with customizable options like output directory and test name prefix.

Instructions

Start a new code generation session to record Playwright actions

Input Schema

NameRequiredDescriptionDefault
optionsYesCode generation options

Input Schema (JSON Schema)

{ "properties": { "options": { "description": "Code generation options", "properties": { "includeComments": { "description": "Whether to include descriptive comments in generated tests", "type": "boolean" }, "outputPath": { "description": "Directory path where generated tests will be saved (use absolute path)", "type": "string" }, "testNamePrefix": { "description": "Prefix to use for generated test names (default: 'GeneratedTest')", "type": "string" } }, "required": [ "outputPath" ], "type": "object" } }, "required": [ "options" ], "type": "object" }
ID: iiafoz7ogl