Command reference
ed grab history
ed grab history [ls] [--limit N] [--json]ed grab history clear [--yes] [--json]ls, the default, lists the grabs history keeps, newest first. History is off until it is turned on in Text Grab settings, and then keeps the last 30 grabs. JSON output reports enabled and grabs.
clear deletes every saved grab and its thumbnail. Without --yes it only reports how many grabs it would delete. JSON output reports action, targets, count, applied, changed and removed.