Skip to content
Tools/Cloud Sync/get_sync_state

get_sync_state

Read the `.upg-sync` file for the active product. Returns cloud product ID, ID mappings, last sync timestamp. Returns null when the product has never been pushed.

Cloud Syncatomic (read-only)

Arguments

No arguments — this tool takes no input.

Returns

Shape
{ synced: false, message }

or { synced: true, cloud_endpoint, product_id, last_synced_at, mapped_nodes, mapped_edges, last_snapshot_hash }.

Examples

Live call against the Notion example graph.

Output

{
  "synced": false,
  "message": "No .upg-sync file found. This product has never been pushed to the cloud."
}

See Also