Is it possible to have more flexible use of the data of the history panel? Copy is possible, but is there any way to get this info into a tag/variable?
The history maintained by IMatch is a convenience feature. It keeps track of important events in the 'life' of a file in your database.
The History Panel visualizes this information.
A file history can contain dozens or even hundreds of events, depending on the operations you perform on a file. There are several different history objects, containing more or less data.
I see no need or easy way to transfer this data into a variable. Or write some metadata tag.
You can always copy the data into the Windows clipboard and then paste it into a metadata text field or Attribute. It will come out nicely formatted.
Note that updating metadata creates a new history event, so the pasted data will be outdated by one entry.
History data for all files in the database is accessible via the IMWS /files endpoint.
This enables you to utilize this data in many ways, including the possibility to implement some sort of 'copy history data into metadata' feature.