Skip to main content
API Reference

URL Scheme API

Automate MouseViz by triggering actions via URL schemes from Raycast, Alfred, Keyboard Maestro, or custom scripts.

MouseViz supports a URL scheme API that lets you trigger any action programmatically. URL schemes are special links that, when opened, tell MouseViz to perform a specific action.

The general format is:

mouseviz://command-name?param1=value1&param2=value2

Quick Start

You can trigger URL schemes from Terminal, automation tools, or scripts:

Terminal:

open mouseviz://start-recording

AppleScript:

open location "mouseviz://start-recording"

Recording & Control

Commands to start and stop mouse tracking sessions and access app settings.

Start Recording

mouseviz://start-recording

Begin a new mouse tracking session. If tracking is not already active, this starts a countdown and begins recording mouse movements, clicks, and scrolls.

Available since v1.0

Stop Recording

mouseviz://stop-recording

Stop the current tracking session. If auto-save is enabled, the session data is saved automatically.

Available since v1.0

Open Settings

mouseviz://settings

Open the MouseViz settings window.

Available since v1.0


Study Scripts

Commands for managing UX study scripts — structured task sequences used to guide participants through research sessions.

Open Study Scripts

mouseviz://study-scripts

Open the Study Scripts panel to view, create, and manage your study scripts.

Available since v1.0

Import Study Script

mouseviz://import-study?file=/path/to/script.json

Import a study script from a JSON file on disk. The file must conform to the MouseViz study script schema. After import, the Study Scripts panel opens automatically.

ParameterTypeRequiredDescription
filestringYesAbsolute file path to the study script JSON file.

Examples:

# Import from Desktop
open "mouseviz://import-study?file=/Users/me/Desktop/usability-test.json"

# Import from Downloads
open "mouseviz://import-study?file=/Users/me/Downloads/study.json"

The file path must be URL-encoded if it contains spaces or special characters.

Available since v1.0


Visualization Modes

Toggle individual visualization layers on and off. These commands control what is rendered on the overlay.

Toggle Heatmap

mouseviz://toggle-heatmap

Toggle the visibility of the mouse movement heatmap overlay.

Coming soon

Toggle Spotlight

mouseviz://toggle-spotlight

Toggle Spotlight mode, which dims the screen and highlights the area around the cursor.

Coming soon

Toggle Trail

mouseviz://toggle-trail

Toggle the mouse movement trail visualization.

Coming soon

Toggle Clicks

mouseviz://toggle-clicks

Toggle the visual click pulse animations on the overlay.

Coming soon


Overlay & Export

Commands for managing the overlay state and exporting visualization data.

Toggle Tracking

mouseviz://toggle-tracking

Toggle mouse tracking on or off. Unlike start/stop recording, this is a single command that switches between states.

Coming soon

Clear Overlay

mouseviz://clear-overlay

Clear the current heatmap, trail, and all other visual data from the overlay.

Coming soon

Export Heatmap

mouseviz://export-heatmap

Open the export dialog for the current heatmap visualization.

Coming soon