Skip to content

export

DocumentsFull

Write an item to a file the way its editor's Export… does. An image: its edited picture (annotations, crop, background and frame, and the SuperCapture mark when the user turned it on) as png, jpeg, webp or jxl (JPEG XL, lossless at quality 100), sized, padded and watermarked, or every page as a pdf, or a SuperCapture archive (scap). An image file in SuperCapture's temp folder (path) is written as the file is, beside itself unless output_path says. A video's edited project (cuts, speeds, crops, annotations, zooms, camera, stage, captions, the audio mix) encoded as a video (on the free tier an mp4 or mov ends with a ~2 s SuperCapture card, counted in duration_ms), an animated picture, its audio alone (m4a), a SuperCapture archive (scap), or one frame as a png at at_ms; an audio recording's edited track as m4a, mp3 or wav (at the recording's own sample rate unless sample_rate says) or scap, or its transcript as txt, srt or vtt (the words inside the trim, timed from its start; doc_edit do transcribe makes one); a scancode as png, svg, pdf, jpeg, webp or eps; a font as its own file (font); a note, bookmark or text document as a zip of the file and its pictures you may read, every link in it relative (zip; pictures_left_out names links kept as written). A scancode, a font, a bookmark and a document take format and output_path only. An animated picture plays as many times as the video's loop says (doc_edit set document loop). bookmarks, with no item, writes every bookmark and browser capture's address as a browser-importable bookmarks file. clipboard puts an item's edited render on the clipboard (a picture as a picture, anything else as its file); print (macOS only for now) shows the system print panel for an image, PDF or bookmark, where the user prints or cancels. Both take the item only. Into output_path, which must be in a folder the user approved (made if missing) and is required for an item; bookmarks without one refreshes the library's bookmarks.html. Reports progress; a long video takes minutes. The result names the file (output_path).

Needs the Full level, which is the default for any client holding the bearer token.

Parameters

NameTypeRequiredDescription
idstringnoThe item's id.
pathstringnoOr its path or name; or an image file in the temp folder.
formatstring one of "mp4", "mov", "gif", "webp", "apng", "m4a", "mp3", "wav", "scap", "txt", "srt", "vtt", "png", "svg", "pdf", "jpeg", "jxl", "eps", "font", "zip", "bookmarks", "clipboard", "print"yesWhat to write.
codecstring one of "h264", "hevc", "prores_422", "prores_4444"nomp4: h264 (default) or hevc (smaller). mov: h264 (default), prores_422 or prores_4444 (macOS).
qualityintegernoPercent (default 80 for a video, the user's export quality for an image). Not for ProRes, m4a, scap, pdf or png.
fpsintegernoFrames per second: 30, 24, 15 or 10, or 0 for the recording's own (default: 0 for mp4 and mov, 15 for gif, webp and apng).
include_audiobooleannomp4 and mov: the sound (default true).
long_edgeintegernoThe output's long side in pixels, its shape kept (default: full size). A video is never made larger; an image may be.
widthintegernoAn image: the width of the box it is fitted into, its shape kept (alone: scaled to this width).
heightintegernoAn image: the box's height (alone: scaled to this height).
padbooleannoAn image: fill out the width × height box, the picture centred (default false: the file is the fitted picture).
pad_colorstringnopad: the padding's colour, #RRGGBB, #AARRGGBB or a CSS name (default transparent; a jpeg has no transparency, so it shows black).
framebooleannoAn image: include its frame and background (default: as the image shows it).
watermarkstringnoAn image: a line of text stamped on the picture.
watermark_atstring one of "top_left", "top_right", "bottom_left", "bottom_right", "center"nowatermark: where (default bottom_right).
watermark_opacitynumbernowatermark: 0 to 1 (default 0.6).
watermark_colorstringnowatermark: #RRGGBB, #AARRGGBB or a CSS name (default white).
watermark_sizenumbernowatermark: the text's size in pixels (default about 4% of the picture's short side).
watermark_marginintegernowatermark: pixels from the picture's edge (default 16).
pageintegernoA multi-page image as png, jpeg, webp or jxl: which page, 1 for the first (default 1).
sample_rateintegernoAn audio recording as m4a, mp3 or wav: the file's rate in Hz — 48000, 44100, 32000, 24000, 22050, 16000, 11025 or 8000 (default: the recording's own; Windows writes m4a at 44100 or 48000 only).
start_msintegernoAn audio recording, or its transcript: write only from here, in ms of the edited track (default: the trim's start). With end_ms, a window of it. What falls outside the trim isn't exported, and the result's start_ms and end_ms say what was written. A video (not png or scap): from here, in ms of the edited video (default 0), what plays there as it plays, annotations, zooms and captions included; the result's start_ms and end_ms say what was written.
end_msintegernoAn audio recording, or its transcript: write only up to here (default: the trim's end). A video: up to here (default: its end).
clipstringnoA video (not png or scap): write only this clip (its id, from doc_read), as it plays in the video. An audio recording, or its transcript: write only the stretch this clip plays (any track's clip there names it), every track as it plays there: their volumes and fades, and at a seam the crossfade with the clip beside it. Not with start_ms or end_ms.
tracksstring one of "separate"noAn audio recording as m4a, mp3 or wav: separate writes each of its tracks (doc_read's track elements: the microphone, the computer's sound...) to a file of its own with the same edits, named after output_path and the track ("take - system.wav"); the result lists them (files). For a recording with more than one track; none of the files may exist already.
trackstringnoAn audio recording as m4a, mp3 or wav: write only this track (a track element's id in doc_read), with the same edits, at its level and with its own fades. Not with tracks.
at_msintegernoA video as png: the moment, in ms of the edited video (default 0).
output_pathstringnoThe file to write, in an approved folder.

Example

A JSON-RPC call to POST http://localhost:21516/mcp with the bearer token, filling in the required parameters:

{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "export",
"arguments": {
"format": "mp4"
}
}
}

See the MCP server overview for how to connect a client and where the token lives.