Memory

hm_get_chat_context

Reload everything stored during one conversation

When an agent passes a session_id to hm_store, hm_recall and hm_find_related, HyperMemory groups the nodes that conversation touched under a server-managed session hyperedge. The group is created once a session has made at least five such calls touching two or more nodes, and it is refreshed as the conversation goes on. The shared "default" session is never grouped. hm_get_chat_context returns that group, so an agent can pick a conversation back up — after a context reset, in a new window, or on another device.

Parameters

ParameterTypeDescription
session_idstringRequired. The session id the agent passed on its calls.

Response

FieldDescription
session_idThe session that was looked up.
foundWhether a group exists for it.
nodesThe nodes the conversation touched.
participants, participant_countThe group’s members.
hyperedge_id, relationship, description, dataThe session hyperedge itself.
truncatedtrue when the group has more members than one read returns.

Example

{ "session_id": "3c9e7a12-5b40-4f8e-9d61-0a2f7c4b8e55" }

Pass your client’s real conversation id as session_id on every recall and store, so the conversation can be recovered with this tool.

There is no REST route for this tool; call it over MCP.