stop_reminder
Stop health reminder notifications to pause break alerts and movement prompts from the reminder system.
Instructions
停止健康提醒定时器
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server/index.ts:138-146 (handler)The core handler function that stops the active reminder timer by clearing the NodeJS interval and logging the action. Returns true if stopped, false if no timer was active.function stopReminder() { if (reminderTimer) { clearInterval(reminderTimer); reminderTimer = null; console.log("✓ 健康提醒已停止"); return true; } return false; }
- src/server/index.ts:187-194 (schema)The tool definition in the tools array, providing the schema with no input parameters required.{ name: "stop_reminder", description: "停止健康提醒定时器", inputSchema: { type: "object", properties: {}, }, },
- src/server/index.ts:264-277 (registration)The dispatch logic in the CallToolRequestSchema handler that invokes the stopReminder function and returns a formatted JSON response indicating success or if no timer was active.case "stop_reminder": { const stopped = stopReminder(); return { content: [ { type: "text", text: JSON.stringify({ success: stopped, message: stopped ? "健康提醒已停止" : "当前没有运行中的提醒", }, null, 2), }, ], }; }
- src/server/index.ts:230-232 (registration)Registers the ListToolsRequestSchema handler, which returns the list of available tools including stop_reminder.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; });