SpecifyDocs

memory_relate

tools/call

Create a typed relationship between two durable memories.

Scopes

curate:memory

A memory recorded from an agent session also needs read:agent_sessions; without it the memory is left out, or reads as NOT_FOUND.

Inputs

sourceMemoryIdstringRequired
Source memory ID
targetMemoryIdstringRequired
Target memory ID
relation"supports" | "contradicts" | "related"Required
notestring
Optional relationship evidence
idempotencyKeystringRequired
Retry key you choose. The same call sent again with the same key within 24 hours writes nothing twice: if an answer is lost or unclear, send the same call with the same key. Use a new key for a new change

Returns

The created relationship. A call returns content[0].text with the JSON result and structuredContent.result with the same value.

Listed when

The connection has agent access and every scope the tool needs.