get_prompts_by_date
Retrieve user prompts from LLM sessions for a specific date to review study history and track learning progress.
Instructions
특정 날짜에 했던 질문들을 조회합니다.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | 조회할 날짜 (YYYY-MM-DD 형식) |
Implementation Reference
- src/server.ts:168-195 (handler)The handler for the 'get_prompts_by_date' tool in src/server.ts. It takes a date string, loads prompts using 'loadPrompts', and formats them for the MCP response.
server.tool( "get_prompts_by_date", "특정 날짜에 했던 질문들을 조회합니다.", { date: z.string().describe("조회할 날짜 (YYYY-MM-DD 형식)"), }, async ({ date }) => { const prompts = loadPrompts(date); if (prompts.length === 0) { return { content: [{ type: "text", text: `${date}에 저장된 질문이 없습니다.` }], }; } const list = prompts .map((p, i) => { const time = new Date(p.timestamp).toLocaleTimeString("ko-KR", { hour: "2-digit", minute: "2-digit" }); const typeEmoji = p.type ? getTypeEmoji(p.type) : "📝"; return `${i + 1}. [${time}] ${typeEmoji} ${p.prompt}`; }) .join("\n"); return { content: [{ type: "text", text: `${date}의 질문 (${prompts.length}개)\n\n${list}` }], }; } );