get_session_properties
Retrieve custom properties attached to a specific analytics session using website and session UUIDs to access detailed session metadata.
Instructions
Get custom properties attached to a specific session
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| websiteId | Yes | Website UUID | |
| sessionId | Yes | Session UUID |
Implementation Reference
- src/tools/sessions.ts:38-52 (handler)The tool 'get_session_properties' is registered and implemented in src/tools/sessions.ts. It calls the Umami API to fetch custom properties for a session.
server.tool( "get_session_properties", "Get custom properties attached to a specific session", { websiteId: z.string().describe("Website UUID"), sessionId: z.string().describe("Session UUID"), }, async ({ websiteId, sessionId }) => { const data = await client.call( "GET", `/api/websites/${websiteId}/sessions/${sessionId}/properties` ); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } );