get_session_details
Retrieve comprehensive session data including events, errors, network requests, console logs, custom events, and performance metrics using a session ID for detailed analysis.
Instructions
Get detailed information about a specific session including all events, errors, network requests, console logs, custom events, and performance metrics
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | The session ID to retrieve |
Implementation Reference
- src/index.ts:378-390 (handler)The core handler function executing the tool's logic: extracts sessionId from input arguments and returns content indicating current API limitations for full session details.private async getSessionDetails(args: any) { const { sessionId } = args; // Session replay details not available via v1 API // Only events are available return { content: [ { type: "text", text: "Session replay details are not available via API key authentication. Use get_session_events instead or use JWT authentication for full access.", }, ], }; }
- src/index.ts:113-119 (schema)Input schema validation for the tool, defining sessionId as a required string parameter.inputSchema: { type: "object", properties: { sessionId: { type: "string", description: "The session ID to retrieve" } }, required: ["sessionId"] }
- src/index.ts:110-120 (registration)Tool metadata registration in the ListTools handler, providing name, description, and schema advertised to clients.{ name: "get_session_details", description: "Get detailed information about a specific session including all events, errors, network requests, console logs, custom events, and performance metrics", inputSchema: { type: "object", properties: { sessionId: { type: "string", description: "The session ID to retrieve" } }, required: ["sessionId"] } },
- src/index.ts:280-281 (registration)Dispatch registration in the CallToolRequestHandler switch statement, routing calls to the handler method.case "get_session_details": return await this.getSessionDetails(args);