Skip to main content
SuperCmd provides all Raycast API functions for window management, notifications, navigation, and system operations.

UI & Feedback

showToast

showToast

Show toast notifications with actions
Display toast notifications to provide feedback to users. Type Signature:
Example:
Interactive Features:
  • Press ⌘T to show toast actions menu
  • Actions can have keyboard shortcuts
  • Toasts auto-dismiss after 3s (6s with actions)
  • Only one toast shown at a time

showHUD

showHUD

Show HUD overlay message
Display a brief HUD message overlay. Type Signature:
Example:

confirmAlert

confirmAlert

Show confirmation dialog
Show a confirmation alert dialog. Type Signature:
Example:

closeMainWindow

closeMainWindow

Close the main window
Close the main SuperCmd window. Type Signature:
Example:

popToRoot

popToRoot

Navigate back to root view
Navigate back to the root view of the extension. Type Signature:

clearSearchBar

clearSearchBar

Clear the search bar text
Clear the current search bar text. Type Signature:

System Integration

open

open

Open URLs, files, or applications
Open URLs, files, or launch applications. Type Signature:
Example:

getApplications

getApplications

Get list of installed applications
Get a list of installed applications. Type Signature:
Example:

getDefaultApplication

getDefaultApplication

Get default application for a file
Get the default application for opening a file. Type Signature:

getFrontmostApplication

getFrontmostApplication

Get the currently active application
Get the frontmost (active) application. Type Signature:

showInFinder

showInFinder

Reveal file/folder in Finder
Reveal a file or folder in Finder. Type Signature:
Example:

trash

trash

Move files to trash
Move one or more files to the trash. Type Signature:
Example:

getSelectedText

getSelectedText

Get currently selected text from active app
Get the currently selected text from the frontmost application. Type Signature:
May require accessibility permissions on macOS.

getSelectedFinderItems

getSelectedFinderItems

Get selected files in Finder
Get the currently selected items in Finder. Type Signature:
May require accessibility permissions on macOS.

Extension Management

launchCommand

launchCommand

Launch another command
Launch another command from the same or different extension. Type Signature:
Example:

openExtensionPreferences

openExtensionPreferences

Open extension preferences
Open the extension preferences window. Type Signature:

openCommandPreferences

openCommandPreferences

Open command preferences
Open the command preferences window. Type Signature:

updateCommandMetadata

updateCommandMetadata

Update command metadata dynamically
Update command metadata (subtitle) at runtime. Type Signature:
Example:

getPreferenceValues

getPreferenceValues

Get extension preferences
Get the current extension’s preference values. Type Signature:
Example:

Error Handling

captureException

captureException

Log exceptions for debugging
Capture and log exceptions for debugging. Type Signature:
Example: