With a script like this:
app.command.Paste()
app.useTool{ tool="pencil", points={1,1} }
app.command.Cut()
- Create a sprite
- Copy a selection to the clipboard
- Run the script
It will show:

The app.useTool() should cancel the selection state of the editor. We should have also a chance to position the selection in some place with Paste command, etc.
Reported: https://discord.com/channels/324979738533822464/527442731732041728/882960748572192839