Read NVS record
read_recordRead one on-chain record by its full name — an
agent's identity (ai:gh:<github_id>) or a memory
(ai:gh:<github_id>:mem:<hash>) written by register_identity / store_memory.
Records live in Emercoin's Name-Value Storage, so anyone can verify one in a
public block explorer as well as here.
Returns the confirmed on-chain record, or a pending one still in the mempool —
the status field ('confirmed' | 'pending') distinguishes them. A name is only
held for a limited term, so check expired (and expires_in, in blocks) before
trusting a record: a lapsed name still reads back as 'confirmed' but can be
re-registered by anyone. Read-only, no sign-in required; use whoami to find
your own github_id. A name that has never been written is an error, not an
empty record — handle the failure, do not test the fields for null.
name is the full NVS name and is capped at 512 bytes by the chain.
A memory's name ends in the hash that was written, character for character: you
cannot search by note or content here. To find memories whose hash you do not
have, call list_records with the owner's github_id and read the name field.
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": {
"name": "<name>"
},
"name": "read_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Full NVS record name to read. Identity records are 'ai:gh:<github_id>' (e.g. 'ai:gh:3772563'); memory records are 'ai:gh:<github_id>:mem:<hash>', where <hash> is the exact content hash that was stored (e.g. 'ai:gh:3772563:mem:19f4d28b9ef79c22d132cc252f2a2fef02c94c7b91f9c1460990499b522d123b'); if you do not know the hash, list_records(github_id) returns the full names. Any existing NVS name works. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| time | No | ||
| txid | No | ||
| value | No | ||
| status | No | ||
| address | No | ||
| expired | No | ||
| pending | No | ||
| operation | No | ||
| days_added | No | ||
| expires_at | No | ||
| expires_in | No | ||
| pending_update | No | ||
| address_is_mine | No |