Skip to content
Edith

Docs

Command reference

Tracepad

All command pages

Tracepad has no ed tracepad command group. Enable tracepad, then use ed invoke. Every payload is a JSON object of at most 16 KiB.

Terminal
ed invoke tracepad tracepad.clipboarded invoke tracepad tracepad.statused invoke tracepad tracepad.handoffed invoke tracepad tracepad.capture --json '{"mode":"region","delay":false}'

Operations

Operation Payload Result
tracepad.status {} message, open editors, canRestore and busy
tracepad.clipboard {} Opens the clipboard image in an editor and returns {} once it is open
tracepad.capture mode (region, window or screen), optional delay Starts a capture and returns {}; read status for the outcome
tracepad.open {} Shows an open panel and returns {}; read status for the outcome
tracepad.restore {} Reopens the most recently closed screenshot in a fresh editor
tracepad.handoff {} Writes the newest editor's flattened PNG and returns version, path, pixelWidth, pixelHeight and scale

capture and open are interactive, so they start the action and return at once. Only one capture or open runs at a time; a second request fails with Finish the current capture first. A capture that is dismissed with Escape, or that ends without an image, leaves Capture cancelled. in status.

clipboard reads an image file URL, PNG, TIFF, JPEG or HEIC data from the clipboard and fails with Copy an image first. when there is none. At most three editors are open at once.

handoff keeps the four newest files in a private temporary folder and deletes older ones as new files are written. Every file is removed when Tracepad stops, so copy the PNG elsewhere if you need to keep it.