Accessing Index Contents

I’m curious if there is an easy way to access the index data and ask it which files are duplicates and return their file paths.

Would restic cat index $INDEXID do what you want? I didn’t dig what is inside too much but it looks like listing the trees it’s related.