recall_recent
Retrieve the most recent memories for a session without providing a search query. Specify the session and optionally the number of memories to return.
Instructions
Get the N most recent memories for a session — no query needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | Session identifier | |
| limit | No | Number of recent memories to return (default 20) |
Implementation Reference
- src/index.ts:209-220 (registration)Tool registration with name 'recall_recent', description, and input schema (sessionId required, limit optional with default 20)
{ name: 'recall_recent', description: 'Get the N most recent memories for a session — no query needed.', inputSchema: { type: 'object', properties: { sessionId: { type: 'string', description: 'Session identifier' }, limit: { type: 'number', description: 'Number of recent memories to return (default 20)', default: 20 }, }, required: ['sessionId'], }, }, - src/index.ts:385-391 (handler)Handler for 'recall_recent' tool: calls memory.recallRecent() with sessionId and limit (default 20), returns JSON results
case 'recall_recent': { const entries = await (memory as any).recallRecent( args.sessionId as string, (args.limit as number) || 20 ); return { content: [{ type: 'text', text: JSON.stringify(entries, null, 2) }] }; } - dist/src/index.js:234-245 (registration)Compiled JS registration of 'recall_recent' tool with same schema
{ name: 'recall_recent', description: 'Get the N most recent memories for a session — no query needed.', inputSchema: { type: 'object', properties: { sessionId: { type: 'string', description: 'Session identifier' }, limit: { type: 'number', description: 'Number of recent memories to return (default 20)', default: 20 }, }, required: ['sessionId'], }, }, - dist/src/index.js:366-369 (handler)Compiled JS handler for 'recall_recent' tool
case 'recall_recent': { const entries = await memory.recallRecent(args.sessionId, args.limit || 20); return { content: [{ type: 'text', text: JSON.stringify(entries, null, 2) }] }; }