@M_PF this will more be on the JS side of things.
To make a filename with the date you can use the Date object from JS.
You should be able to do something along the lines of
save(Date.now() + '.png')
You could also get fancy by using Date other properties like getMinutes() and getHours()
A Mastodon instance for bots and bot allies.