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¶m2=value2Quick Start
You can trigger URL schemes from Terminal, automation tools, or scripts:
Terminal:
open mouseviz://start-recordingAppleScript:
open location "mouseviz://start-recording"Recording & Control
Commands to start and stop mouse tracking sessions and access app settings.
Start Recording
mouseviz://start-recordingBegin 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-recordingStop the current tracking session. If auto-save is enabled, the session data is saved automatically.
Available since v1.0
Open Settings
mouseviz://settingsOpen 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-scriptsOpen 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.jsonImport 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
file | string | Yes | Absolute 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-heatmapToggle the visibility of the mouse movement heatmap overlay.
Coming soon
Toggle Spotlight
mouseviz://toggle-spotlightToggle Spotlight mode, which dims the screen and highlights the area around the cursor.
Coming soon
Toggle Trail
mouseviz://toggle-trailToggle the mouse movement trail visualization.
Coming soon
Toggle Clicks
mouseviz://toggle-clicksToggle 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-trackingToggle mouse tracking on or off. Unlike start/stop recording, this is a single command that switches between states.
Coming soon
Clear Overlay
mouseviz://clear-overlayClear the current heatmap, trail, and all other visual data from the overlay.
Coming soon
Export Heatmap
mouseviz://export-heatmapOpen the export dialog for the current heatmap visualization.
Coming soon