session-delete
Remove a specific session by its ID to manage session data and maintain system organization within the LLM Conveyors platform.
Instructions
Delete a session by ID.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Session ID |
Implementation Reference
- src/tools/sessions.ts:82-97 (handler)The session-delete tool is registered and implemented within the registerSessionTools function. The handler calls client.sessions.delete and returns a success or error message.
server.tool( "session-delete", "Delete a session by ID.", { id: z.string().describe("Session ID"), }, async (params) => { try { await client.sessions.delete(params.id); return { content: [{ type: "text", text: JSON.stringify({ deleted: true, id: params.id }) }] }; } catch (err) { const message = err instanceof Error ? err.message : String(err); return { content: [{ type: "text", text: `Error: ${message}` }], isError: true }; } }, );