list_memories
Retrieve all saved translation memories from your Lara Translate account to reuse past translations.
Instructions
Lists all translation memories in your Lara Translate account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mcp/tools/list_memories.ts:6-8 (handler)The handler function that executes the list_memories tool logic. Calls lara.memories.list() to fetch all translation memories.
export async function listMemories(lara: Translator) { return await lara.memories.list() } - src/mcp/tools/list_memories.ts:4-4 (schema)Input schema definition for list_memories — an empty object (no parameters required).
export const listMemoriesSchema = z.object({}) - src/mcp/tools.ts:317-321 (registration)Tool definition registration for list_memories in the toolDefinitions array, including description, inputSchema, and annotations (readOnlyHint, destructiveHint).
{ name: "list_memories", description: "Lists all translation memories in your Lara Translate account.", inputSchema: z.toJSONSchema(listMemoriesSchema), - src/mcp/tools.ts:71-71 (registration)Registration of listMemories in the listers record, mapping the tool name to the handler for zero-argument tool calls.
list_memories: listMemories, - src/mcp/tools.ts:24-24 (registration)Import of listMemories and listMemoriesSchema from the implementation file.
import { listMemories, listMemoriesSchema } from "./tools/list_memories.js";