Skip to main content
Glama
devskido

Playwright MCP Server

by devskido

get_codegen_session

Retrieve detailed information about a code generation session by providing its session ID. Use this tool within the Playwright MCP Server to monitor or manage automation workflows like browser interactions, test code generation, and web content scraping.

Instructions

Get information about a code generation session

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionIdYesID of the session to retrieve

Implementation Reference

  • The main handler implementation for the 'get_codegen_session' tool. It retrieves the code generation session by ID from the ActionRecorder singleton and returns it, or throws an error if not found.
    export const getCodegenSession: Tool = { name: 'get_codegen_session', description: 'Get information about a code generation session', parameters: { type: 'object', properties: { sessionId: { type: 'string', description: 'ID of the session to retrieve' } }, required: ['sessionId'] }, handler: async ({ sessionId }: { sessionId: string }) => { const session = ActionRecorder.getInstance().getSession(sessionId); if (!session) { throw new Error(`Session ${sessionId} not found`); } return session; } };
  • Registration and dispatch logic in the main tool handler switch statement, which calls the specific handler for 'get_codegen_session'.
    case 'get_codegen_session': return await handleCodegenResult(getCodegenSession.handler(args));
  • Input schema definition for the 'get_codegen_session' tool used in MCP tool definitions.
    { name: "get_codegen_session", description: "Get information about a code generation session", inputSchema: { type: "object", properties: { sessionId: { type: "string", description: "ID of the session to retrieve" } }, required: ["sessionId"] }
  • src/tools.ts:488-488 (registration)
    The tool is listed in the CODEGEN_TOOLS constant array for categorization.
    'get_codegen_session',
  • The tool is included in the codegenTools export array.
    getCodegenSession,

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/devskido/customed-playwright'

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