set_memory_visibility
Control access to memory entities by setting visibility levels (private, team, org, shared, public) with optional time windows and role-based restrictions.
Instructions
Set the visibility of a memory entity for multi-agent access control. Auto-promotes plain entities to AgentEntity (stamps agentId/memoryType/etc.) instead of failing silently. Supports η.5.5.b extensions: allowedRoles (role gate), visibleFrom/visibleUntil (time-window gate).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agentId | Yes | Agent ID that owns the memory | |
| memoryName | Yes | Name of the memory entity | |
| visibility | Yes | Visibility level | |
| visibleFrom | No | η.5.5.b — ISO 8601. Memory becomes visible at this instant. Absent ⇒ visible since creation. Denies even the owner before this time. | |
| allowedRoles | No | η.5.5.b — Optional role gate. When set, requesting agents whose AgentMetadata.role is NOT in this list are denied even if the visibility level would grant. AND-combined with the level check. | |
| visibleUntil | No | η.5.5.b — ISO 8601. Memory stops being visible at this instant. Useful for shared drafts that expire on a known handoff date. |