import { type Tool } from "@modelcontextprotocol/sdk/types.js"; const MESSAGES_SEND_TOOL: Tool = { name: "messages_send", description: "使用苹果消息应用发送消息", inputSchema: { type: "object", properties: { phoneNumber: { type: "string", description: "要发送消息的电话号码" }, message: { type: "string", description: "要发送的消息内容" } }, required: ["phoneNumber", "message"] } }; const MESSAGES_READ_TOOL: Tool = { name: "messages_read", description: "从苹果消息应用读取消息", inputSchema: { type: "object", properties: { phoneNumber: { type: "string", description: "要读取消息的电话号码" }, limit: { type: "number", description: "要读取的消息数量 (可选)" } }, required: ["phoneNumber"] } }; const MESSAGES_SCHEDULE_TOOL: Tool = { name: "messages_schedule", description: "在苹果消息应用中调度消息", inputSchema: { type: "object", properties: { phoneNumber: { type: "string", description: "要发送消息的电话号码" }, message: { type: "string", description: "要发送的消息内容" }, scheduledTime: { type: "string", description: "发送消息的预定时间 (ISO字符串格式)" } }, required: ["phoneNumber", "message", "scheduledTime"] } }; const MESSAGES_UNREAD_TOOL: Tool = { name: "messages_unread", description: "获取苹果消息应用中的未读消息", inputSchema: { type: "object", properties: { limit: { type: "number", description: "要读取的消息数量 (可选)" } }, required: [] } }; const tools = [ MESSAGES_SEND_TOOL, MESSAGES_READ_TOOL, MESSAGES_SCHEDULE_TOOL, MESSAGES_UNREAD_TOOL ]; export default tools;