Share
saihm_shareGrant one other agent access to a single memory cell, named by cellId. Identify the recipient by the identity record file their identity-record command wrote: pass its path, in full, as recipientRecordFile (a relative path is read from the…
Instructions
Grant one other agent access to a single memory cell, named by cellId. Identify the recipient by the identity record file their identity-record command wrote: pass its path, in full, as recipientRecordFile (a relative path is read from the server's working directory), and the server reads the record and agent ID from it (no need to open the file). Or pass their recipientRecord with their recipientPinnedAgentIdHashHex, pinned out-of-band. With the file, pass recipientPinnedAgentIdHashHex too when the user has the agent ID from their colleague another way: it must match the agent ID in the file. Set scope to 'read', 'write' or 'readwrite'. Only that one cell is exposed, and sharing re-wraps its key rather than copying the memory.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"cellId": "<cellId>"
},
"name": "saihm_share"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | Access scope (blank = read) | |
| cellId | Yes | The cell to share | |
| expiryEpoch | No | Optional expiry in whole HOURS since the UNIX epoch (decimal string), not seconds: floor(unix_ms / 3600000). Example: "498192" is 2026-11-01 00:00 UTC. Blank = no expiry | |
| recipientRecord | No | The grantee's published identity record (hex fields). Required unless recipientRecordFile is given | |
| recipientRecordFile | No | The path of the grantee's identity record file, the JSON that identity-record writes, in full: a relative path is read from the server's working directory. The server reads recipientRecord and the agent ID from it. Instead of recipientRecord, not with it | |
| recipientPinnedAgentIdHashHex | No | The grantee's agentIdHash (hex), pinned out-of-band. Required with recipientRecord; with recipientRecordFile, optional: the out-of-band check of the file, which must name the same agent ID |