URL Scheme API
Automate MouseViz by triggering actions via URL schemes from Raycast, Alfred, Keyboard Maestro, or custom scripts.
Overview
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 — like starting a recording session or importing a study script.
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
Availablev1.0+Begin a new mouse tracking session. If tracking is not already active, this starts a countdown and begins recording mouse movements, clicks, and scrolls.
URL Scheme
mouseviz://start-recordingExamples
Start a session
mouseviz://start-recordingStop Recording
Availablev1.0+Stop the current tracking session. If auto-save is enabled, the session data is saved automatically.
URL Scheme
mouseviz://stop-recordingExamples
Stop the current session
mouseviz://stop-recordingOpen Settings
Availablev1.0+Open the MouseViz settings window.
URL Scheme
mouseviz://settingsExamples
Open settings
mouseviz://settingsStudy Scripts
Commands for managing UX study scripts — structured task sequences used to guide participants through research sessions.
Open Study Scripts
Availablev1.0+Open the Study Scripts panel to view, create, and manage your study scripts.
URL Scheme
mouseviz://study-scriptsExamples
Open the panel
mouseviz://study-scriptsImport Study Script
Availablev1.0+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.
URL Scheme
mouseviz://import-studyParameters
| Name | Type | Required | Description |
|---|---|---|---|
| file | string | Yes | Absolute file path to the study script JSON file.e.g. /Users/me/Desktop/usability-test.json |
Examples
Import a script from Desktop
mouseviz://import-study?file=/Users/me/Desktop/usability-test.jsonImport from Downloads
mouseviz://import-study?file=/Users/me/Downloads/study.jsonThe file path must be URL-encoded if it contains spaces or special characters.
Visualization Modes
Toggle individual visualization layers on and off. These commands control what is rendered on the overlay.
Toggle Heatmap
Coming SoonToggle the visibility of the mouse movement heatmap overlay.
URL Scheme
mouseviz://toggle-heatmapToggle Spotlight
Coming SoonToggle Spotlight mode, which dims the screen and highlights the area around the cursor.
URL Scheme
mouseviz://toggle-spotlightToggle Trail
Coming SoonToggle the mouse movement trail visualization.
URL Scheme
mouseviz://toggle-trailToggle Clicks
Coming SoonToggle the visual click pulse animations on the overlay.
URL Scheme
mouseviz://toggle-clicksOverlay & Export
Commands for managing the overlay state and exporting visualization data.
Toggle Tracking
Coming SoonToggle mouse tracking on or off. Unlike start/stop recording, this is a single command that switches between states.
URL Scheme
mouseviz://toggle-trackingClear Overlay
Coming SoonClear the current heatmap, trail, and all other visual data from the overlay.
URL Scheme
mouseviz://clear-overlayExport Heatmap
Coming SoonOpen the export dialog for the current heatmap visualization.
URL Scheme
mouseviz://export-heatmap