get_codegen_session
Retrieve detailed information about a code generation session by providing its session ID using the Playwright-powered MCP server for browser automation.
Instructions
Get information about a code generation session
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | ID of the session to retrieve |
Implementation Reference
- src/tools/codegen/index.ts:160-180 (handler)The core handler function for the 'get_codegen_session' tool. It retrieves the code generation session by ID from the ActionRecorder instance 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; } };
- src/toolHandler.ts:369-370 (registration)The dispatch registration in the main tool handler switch statement that calls the getCodegenSession.handler with input arguments.case 'get_codegen_session': return await handleCodegenResult(getCodegenSession.handler(args));
- src/tools.ts:50-63 (schema)MCP tool definition including the input schema for 'get_codegen_session' used in createToolDefinitions().{ 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/codegen/index.ts:204-209 (registration)Includes getCodegenSession in the exported codegenTools array.export const codegenTools = [ startCodegenSession, endCodegenSession, getCodegenSession, clearCodegenSession ];
- src/tools.ts:488-488 (registration)Lists 'get_codegen_session' in the CODEGEN_TOOLS constant array.'get_codegen_session',