readText

suspend fun readText(): String(source)

The readText() method of the Clipboard interface returns a Promise which fulfills with a copy of the textual contents of the system clipboard.

MDN Reference