Get /give command from nbt data of an item

I have nbt data of an item with /data entity get @s SelectedItem

I copied it from latest.log in my client chatlogs.

I wanna generate a /give command to give the SelectedItem, I searched a lot, but there's no publicly available tools that take in that data string and output a /give command
Was this page helpful?