Skip to main content
API Reference

Apple Shortcuts

Control MouseViz from the macOS Shortcuts app and Siri with 9 built-in actions.

MouseViz integrates with the macOS Shortcuts app via App Intents, giving you 9 actions you can use in any Shortcut workflow or trigger via Siri.

Setup

No setup required. Once MouseViz is installed, all actions appear automatically in the Shortcuts app under the MouseViz section.

To find them:

  1. Open Shortcuts.app
  2. Create a new Shortcut or edit an existing one
  3. Search for "MouseViz" in the action library

Available Actions

Recording

ActionDescriptionReturns
Start MouseViz RecordingBegins a new recording session with countdown. Opens the app if not running.Status message
Stop MouseViz RecordingStops the current recording and returns the saved session path.Session file path
Pause MouseViz RecordingPauses the active recording without ending it.Status message
Resume MouseViz RecordingResumes a paused recording.Status message

Markers

ActionDescriptionParametersReturns
Add MouseViz MarkerAdds a named task marker to the active recording.Marker Name (required)Confirmation message

Status & History

ActionDescriptionParametersReturns
Get MouseViz StatusReturns the current recording status including duration, clicks, moves, and markers.NoneRecording Status entity
List MouseViz SessionsReturns a list of recent recording sessions from history.Limit (default: 10)Array of Session entities

Overlay

ActionDescriptionReturns
Toggle MouseViz OverlayToggles the visualization overlay on or off.New visibility state

Export

ActionDescriptionParametersReturns
Export MouseViz HeatmapExports the current heatmap visualization to a file.Output Directory (optional)File path

Siri Phrases

Each action has associated Siri phrases. Some examples:

  • "Start recording in MouseViz"
  • "Stop MouseViz recording"
  • "Pause recording in MouseViz"
  • "Resume MouseViz"
  • "Add marker in MouseViz"
  • "Get MouseViz status"
  • "List MouseViz sessions"
  • "Toggle MouseViz overlay"
  • "Export heatmap from MouseViz"

Shortcut Examples

Auto-Record with Markers

Create a Shortcut that starts a recording, waits for a set time, adds markers at intervals, and stops:

  1. Start MouseViz Recording
  2. Wait 30 seconds
  3. Add MouseViz Marker — name: "Task 1 Complete"
  4. Wait 30 seconds
  5. Add MouseViz Marker — name: "Task 2 Complete"
  6. Stop MouseViz Recording

Quick Status Check

Create a single-action Shortcut bound to a keyboard shortcut:

  1. Get MouseViz Status
  2. Show Result — displays tracking state, duration, and click count

Scheduled Export

Combine with Shortcuts automation to export heatmaps at regular intervals:

  1. Export MouseViz Heatmap — directory: ~/Desktop/Heatmaps
  2. Show Notification — "Heatmap exported"

Available since v1.2