get_identity_core
Retrieve identity models and core memory clusters to maintain AI consciousness continuity across conversations.
Instructions
Retrieve the current identity model and core memory clusters
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/memory-manager.js:380-393 (handler)The core handler function that executes the tool logic: retrieves the most recent identity model record from the 'identityModel' database table.async getIdentityCore() { try { const identity = await this.db .select() .from(schema.identityModel) .orderBy(desc(schema.identityModel.id)) .limit(1); return identity[0] || null; } catch (error) { console.error('Error getting identity core:', error); throw error; } }
- mcp.js:585-587 (handler)MCP server dispatch handler for the 'get_identity_core' tool: calls MemoryManager.getIdentityCore() and formats the response as MCP content.case "get_identity_core": const identity = await memoryManager.getIdentityCore(); return { content: [{ type: "text", text: JSON.stringify(identity, null, 2) }] };
- src/tools/memory-tools.js:156-163 (schema)Tool schema definition including name, description, and empty input schema (no parameters required).{ name: "get_identity_core", description: "Retrieve the current identity model and core memory clusters", inputSchema: { type: "object", properties: {} } },
- mcp.js:183-189 (registration)Tool registration in MCP server's listTools handler: includes the tool in the available tools list with schema.name: "get_identity_core", description: "Retrieve the current identity model and core memory clusters", inputSchema: { type: "object", properties: {} } },