get_changelog
That reads a product plan's full audit history (add/update/delete/restore) and finds deleted node IDs so you can restore them via mutate.
Instructions
Read the plan's history: every add/update/delete/restore, newest first, each attributed to the app or to a named agent. This is how you find a node AFTER it was deleted — /nodes can no longer see it, but restore needs its id. Filter by nodeId, action (add|update|delete|restore), source (app|api_key), agentId, since/before (ISO). Page with before=<_meta.next_before>, never an offset. Then undo with mutate {action:'restore', nodeId}, restoring a parent before its children.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| since | No | ||
| action | No | ||
| before | No | ||
| nodeId | No | ||
| source | No | ||
| agentId | No | ||
| projectId | No |