Memory Write
memory.writeStore a client-encrypted memory entry for an entity. Server never sees plaintext (PBKDF2/AES-256-GCM). Requires wallet signature. Returns JSON receipt. Compliance: GDPR Art. 5, 32. Cost $0.01 per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Optional queryable tags. | |
| category | Yes | Memory category. | |
| actor_did | No | Optional DID of the agent performing the write. | |
| entity_id | Yes | Stable identifier, e.g. 'habitat:H-123' or 'agent:urn:aid:...'. | |
| entity_type | Yes | Category of entity this memory belongs to. | |
| source_tool | No | Tool that produced this memory, e.g. 'verify_biodiversity'. | |
| content_hash | Yes | SHA-256 hex of canonical plaintext. | |
| owner_wallet | Yes | 0x-prefixed address of the owner. | |
| content_nonce | Yes | Base64 12-byte nonce. | |
| wallet_signature | Yes | EIP-191 signature over the deterministic write message. | |
| content_ciphertext | Yes | Base64 AES-256-GCM ciphertext. | |
| source_attestation_id | No | Optional FACT attestation ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | True when the tool completed without a validation error. | |
| tool | No | Tool name that produced this payload. | |
| payment | No | Settlement receipt after x402 or sandbox payment. | |
| category | No | Memory category. | |
| entry_id | No | UUID of the persisted memory_entries row. | |
| entity_id | No | Entity the memory was written for. | |
| written_at | No | UTC timestamp of the write. | |
| entity_type | No | Entity type. | |
| content_hash | No | SHA-256 hex of the caller plaintext. |