write

fun write(): String

Serializes the current screen as a version 1 JSON document containing one unnamed scene.

This captures the current screen rather than re-encoding all scenes from the loaded document.