URL scheme API

Our macOS app exposes actions that let pro users and developers of other apps send commands to CleanShot. This page explains how it works.

Overview

URL scheme is a special type of link that works just like a normal https:// link you use every day. Instead of opening a webpage, it performs a specific action in the CleanShot macOS app.

Commands are sent to CleanShot by constructing a special URL:

Opening these links will launch the app and execute the command. For example, here's how you would tell CleanShot to take a fullscreen screenshot:

✨  All-In-One mode

/all-in-one

Launch the "All-In-One" mode. You can also provide the optional parameters to open the tool at specific location. Point (0,0) is located in the lower left corner of the screen.

Parameters:

ParameterRequiredDescription
x(optional)
y(optional)
width(optional)
height(optional)
display(optional)Capture a specified display: 1 is the main display, 2 is the secondary, etc. If not specified, CleanShot will use the display which the cursor is on.

Example:

Requires CleanShot 4.2 or later. Parameters x, y, width, height, display require version 4.7 or later.

📸  Screenshots

/capture-area

Opens the standard "Capture Area" mode. You can also provide the optional parameters and capture the screen instantly. Point (0,0) is located in the lower left corner of the screen.

Parameters:

ParameterRequiredDescription
x(optional)
y(optional)
width(optional)
height(optional)
display(optional)Capture a specified display: 1 is the main display, 2 is the secondary, etc. If not specified, CleanShot will use the display which the cursor is on.
action(optional)Perform a specific action after taking a screenshot: (copy/save/annotate/upload/pin).

Example:

Requires CleanShot 3.5.1 or later. Parameter action requires version 4.7 or later.

/capture-previous-area

Repeats last taken screenshot.

Parameters:

ParameterRequiredDescription
action(optional)Perform a specific action after taking a screenshot: (copy/save/annotate/upload/pin)

Example:

Requires CleanShot 3.5.1 or later. Parameter action requires version 4.7 or later.

/capture-fullscreen

Takes a fullscreen screenshot.

Parameters:

ParameterRequiredDescription
action(optional)Perform a specific action after taking a screenshot: (copy/save/annotate/upload/pin)

Example:

Requires CleanShot 3.5.1 or later. Parameter action requires version 4.7 or later.

/capture-window

Opens "Capture Window" mode.

Parameters:

ParameterRequiredDescription
action(optional)Perform a specific action after taking a screenshot: (copy/save/annotate/upload/pin)

Example:

Requires CleanShot 3.5.1 or later. Parameter action requires version 4.7 or later.

/self-timer

Opens "Capture Area" mode with self-timer.

Parameters:

ParameterRequiredDescription
action(optional)Perform a specific action after taking a screenshot: (copy/save/annotate/upload/pin)

Example:

Requires CleanShot 3.5.1 or later. Parameter action requires version 4.7 or later.

/scrolling-capture

Opens "Scrolling Capture" mode. You can also provide the optional parameters to open the tool at specific location. Point (0,0) is located in the lower left corner of the screen.

Parameters:

ParameterRequiredDescription
x(optional)
y(optional)
width(optional)
height(optional)
display(optional)Capture a specified display: 1 is the main display, 2 is the secondary, etc. If not specified, CleanShot will use the display which the cursor is on.
start(optional)Automatically start capture (true/false)
autoscroll(optional)Enable auto-scroll mode (true/false)

Example:

Requires CleanShot 3.5.1 or later. Parameters start and autoscroll require version 4.7 or later.

/pin

Opens the specified file as a pinned screenshot.

Parameters:

ParameterRequiredDescription
filepath(optional)path to the file (PNG/JPEG) you want to pin. If you don’t pass this parameter, CleanShot will ask to select the file manually.

Example:

Requires CleanShot 3.5.1 or later.

🎥  Screen Recording

/record-screen

Opens "Record Screen" mode. You can also provide the optional parameters to open the tool at specific location. Point (0,0) is located in the lower left corner of the screen.

Parameters:

ParameterRequiredDescription
x(optional)
y(optional)
width(optional)
height(optional)
display(optional)Capture a specified display: 1 is the main display, 2 is the secondary, etc. If not specified, CleanShot will use the display which the cursor is on.

Example:

or

Requires CleanShot 3.5.1 or later. Parameters x, y, width, height, display require version 4.7 or later.

📖  Text Recognition

/capture-text

Opens Text Recognition (OCR) tool or extracts text from the specified file. You can also provide the optional parameters (x, y, width, height, display) and capture the text from a specified area on screen. Point (0,0) is located in the lower left corner of the screen.

Parameters:

ParameterRequiredDescription
filepath(optional)path to the image file (PNG/JPEG) that contains the text you want to extract.
x(optional)
y(optional)
width(optional)
height(optional)
display(optional)Capture a specified display: 1 is the main display, 2 is the secondary, etc. If not specified, CleanShot will use the display which the cursor is on
linebreaks(optional)Keep (true) or remove (false) line breaks from copied text

Example:

Requires CleanShot 3.8.1 and macOS 10.15 or later.

✏️  Annotate

/open-annotate

Opens specified file in Annotate.

Parameters:

ParameterRequiredDescription
filepath(optional)path to the image (PNG/JPEG) you want to open. If you don’t pass this parameter, CleanShot will ask to select the file manually.

Example:

Requires CleanShot 3.8.1 or later.

/open-from-clipboard

Opens the image from clipboard in Annotate.

Example:

Requires CleanShot 3.5.1 or later.

🖥  Desktop icons

/toggle-desktop-icons

Toggles Desktop icons visibility.

Example:

Requires CleanShot 3.5.1 or later.

/hide-desktop-icons

Hides Desktop icons.

Example:

Requires CleanShot 3.8.1 or later.

/show-desktop-icons

Shows Desktop icons.

Example:

Requires CleanShot 3.8.1 or later.

⚡️  Quick Access Overlay

/add-quick-access-overlay

Opens a new Quick Access Overlay with the specified image or video.

Parameters:

ParameterRequiredDescription
filepath(required)path to the image or video (PNG/JPEG/MP4) you want to open.

Example:

Requires CleanShot 3.8.1 or later.

⏳  History management

/open-history

Opens capture history.

Example:

Requires CleanShot 4.4 or later.

/restore-recently-closed

Restores the most recently closed file from history.

Example:

Requires CleanShot 3.5.1 or later.

⚙️  Settings

/open-settings

Opens CleanShot settings. You can also specify the tab to open.

Parameters:

ParameterRequiredDescription
tab(optional)Specify the tab to open. Possible values: general, wallpaper, shortcuts, quickaccess, recording, screenshots, annotate, cloud, advanced, about

Example:

Requires CleanShot 4.7 or later.