get_status
Check current health reminder settings and status to monitor break intervals and notification preferences for maintaining regular movement habits.
Instructions
获取当前健康提醒的状态和配置
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server/index.ts:279-294 (handler)Handler for the 'get_status' tool call. Retrieves the current reminder status using the getReminderStatus helper and returns it as formatted JSON text content.case "get_status": { const status = getReminderStatus(); return { content: [ { type: "text", text: JSON.stringify({ success: true, status: status.active ? "运行中" : "已停止", active: status.active, config: status.config, }, null, 2), }, ], }; }
- src/server/index.ts:195-202 (registration)Registration of the 'get_status' tool in the tools array, which is returned by the listTools handler. Includes name, description, and input schema (empty object).{ name: "get_status", description: "获取当前健康提醒的状态和配置", inputSchema: { type: "object", properties: {}, }, },
- src/server/index.ts:149-154 (helper)Helper function getReminderStatus that checks if the reminder timer is active and returns the current configuration.function getReminderStatus() { return { active: reminderTimer !== null, config: currentConfig, }; }