session-hydrate
Retrieve complete session data including artifacts and logs by providing a session ID for comprehensive analysis and management.
Instructions
Hydrate a session — returns the full session with all artifacts and logs.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Session ID |
Implementation Reference
- src/tools/sessions.ts:65-80 (handler)Registration and handler implementation for the 'session-hydrate' tool, which uses the LLMConveyors client to hydrate a session.
server.tool( "session-hydrate", "Hydrate a session — returns the full session with all artifacts and logs.", { id: z.string().describe("Session ID"), }, async (params) => { try { const result = await client.sessions.hydrate(params.id); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (err) { const message = err instanceof Error ? err.message : String(err); return { content: [{ type: "text", text: `Error: ${message}` }], isError: true }; } }, );