brain_get_modifications
The brain's authoritative, uncached change-log. Requires npub for credit billing.
Unlike get_thought_graph and search (Azure-cached, stale for recent writes), this feed reflects every operation promptly — CREATED (101), DELETED (102), CHANGED_NAME (103), SET_TYPE (203), MOVED_LINK (402), etc. — with old→new values and timestamps. Use it for two things:
Confirm a write landed — after a mutation, query with start_time set to just before it and check for the matching entry. This is the authoritative read-after-write check (stronger than the cached graph, and it confirms deletes and type/link changes the graph hides). The heavy mutating tools also expose a
confirm=Trueflag that does this for you.Discover recent / peer activity — "what changed since T" so an agent can pick up where others left off.
⚠️ userId is the TheBrain account owner, shared by every agent using this
operator's key — it distinguishes human-desktop vs API activity, NOT one agent
from another. Peer discovery here is by time + content, not by author.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| npub | No | Required. Your Nostr public key (npub1...) for credit billing. | |
| brain_id | No | The ID of the brain (uses active brain if not specified) | |
| end_time | No | End time for logs (ISO format) | |
| max_logs | No | Maximum number of logs to fetch from the API (pre-filter) | |
| mod_types | No | Only return entries whose modType is in this list (e.g. [102] for deletes) | |
| source_id | No | Only return entries for this thought/link ID | |
| dpop_token | No | ||
| start_time | No | Start time for logs (ISO format) | |
| source_type | No | Only return entries of this SourceType (2=Thought, 3=Link) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||