With two globals you can paste the last item from the clipboard:
await setSelectedText(await paste());