memory_get_user
Retrieve user memories from the Pickaxe platform by email, with options to filter by memory type, skip records, and limit results for efficient data access.
Instructions
Get all collected memories for a specific user.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| studio | No | Studio name to use. Available: STAGING, MAIN, DEV, PRODUCTION. Default: PRODUCTION | |
| Yes | The user's email address | ||
| memoryId | No | Optional: specific memory schema ID to filter by | |
| skip | No | Number of memories to skip. Default: 0 | |
| take | No | Number of memories to return. Default: 10 |
Implementation Reference
- src/index.ts:589-595 (handler)Switch case that handles execution of the 'memory_get_user' tool by building a query URL with email, optional memoryId, skip, and take parameters, then performing a GET request via pickaxeRequest and returning the JSON-stringified result.case "memory_get_user": { let url = `/studio/memory/user/${encodeURIComponent(args.email as string)}?`; if (args.memoryId) url += `memoryId=${args.memoryId}&`; url += `skip=${args.skip ?? 0}&take=${args.take ?? 10}`; const result = await pickaxeRequest(url, "GET", undefined, studio); return JSON.stringify(result, null, 2); }
- src/index.ts:429-455 (schema)The input schema definition for the 'memory_get_user' tool within the tools array, specifying properties for studio, email (required), memoryId, skip, and take.{ name: "memory_get_user", description: "Get all collected memories for a specific user.", inputSchema: { type: "object", properties: { studio: studioParam, email: { type: "string", description: "The user's email address", }, memoryId: { type: "string", description: "Optional: specific memory schema ID to filter by", }, skip: { type: "number", description: "Number of memories to skip. Default: 0", }, take: { type: "number", description: "Number of memories to return. Default: 10", }, }, required: ["email"], }, },
- src/index.ts:616-618 (registration)Registration of the tool list handler that returns the 'tools' array containing the 'memory_get_user' schema.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; });