Skip to content

Tauri Commands

The frontend communicates with the Rust backend exclusively through Tauri IPC commands using invoke(). All commands are registered in src-tauri/src/lib.rs inside tauri::generate_handler!.

Commands for spawning, managing, and interacting with AI agent sessions.

CommandDescription
create_agent_sessionSpawn a new agent process for a given provider/model/working directory
send_agent_messageSend a prompt message to a running agent session
send_bash_commandSend a raw bash command to a running agent session
kill_agent_sessionTerminate an agent session by session ID
fork_agent_sessionFork an existing session into a new branch
get_active_sessionsReturn all currently running sessions
check_session_processCheck whether a session’s backing process is still alive
kill_external_sessionKill an externally-started session (by PID)
kill_process_by_pidKill an arbitrary process by PID
get_git_branchGet the current git branch for a working directory
resolve_permissionResolve a pending tool-use permission request

Commands for scanning the filesystem and cache for sessions and projects.

CommandDescription
discover_projectsFull scan: return all projects from the session cache
discover_projects_paginatedPaginated scan for the dashboard
discover_recent_sessionsReturn recently active sessions
get_cached_recent_sessionsReturn recently active sessions from in-memory cache (fast)
refresh_sessionsTrigger a full incremental session cache sync
refresh_single_sessionRe-index a single session by path
invalidate_project_cacheMark the project cache stale so the next read re-scans
discover_sessionsList all sessions for a given project path
get_current_sessionReturn the currently active session for a given process
discover_reposDetect git repositories under a given root directory
read_stats_cacheRead cost/token stats for a project
read_memory_filesRead memory (CLAUDE.md) files for a project
write_memory_fileWrite a memory file for a project
discover_observationsList AI observation files for a project
read_observationRead the content of an observation file
read_session_tasksRead the task list embedded in a session transcript
rename_claude_sessionRename a session (sets title in the session cache)
pid_cwdLook up the working directory for a given PID
watch_sessionsSubscribe to filesystem events for a project directory
unwatch_sessionsRemove a filesystem watch subscription

Commands for reading session transcripts.

CommandDescription
read_session_transcriptRead the full transcript for a session
read_transcript_incrementalRead new events appended since a given offset
read_transcript_tailRead the last N events from a transcript
read_transcript_rangeRead events in a line-number range
read_history_incrementalRead historical events from a finalized session
search_sessionsFull-text search across all session transcripts
read_gemini_transcriptRead a Gemini session transcript
read_codex_transcriptRead a Codex session transcript
CommandDescription
load_settingsLoad settings from settings.json on disk
save_settingsPersist current settings to settings.json
CommandDescription
detect_installed_llm_clisDetect all installed LLM CLI tools (claude, gemini, codex)
detect_installed_providersDetect which providers are installed and ready
get_provider_modelsList available models for a provider
get_provider_capabilitiesGet capability flags for a provider
get_provider_metadataGet metadata (name, icon) for a provider
get_provider_session_pathsGet the session storage directories for a provider
check_provider_readinessFull readiness check (binary, auth, hooks)
detect_binary_pathResolve the binary path for a given provider
clear_binary_cacheClear the resolved-binary-path cache for a provider
ask_side_questionMake a lightweight LLM call for internal use (e.g. title generation)
detect_cli_agentsReturn list of installed CLI agent IDs
get_default_effortGet the default Claude effort level from config
CommandDescription
activate_providerEnable a provider and inject hooks
deactivate_providerDisable a provider
purge_provider_dataRemove all data associated with a provider
remove_provider_hooksRemove hook configuration for a provider
get_active_providersReturn currently enabled provider IDs
check_new_providersDetect providers that have been installed since last check
CommandDescription
get_provider_accountsList all configured provider accounts
upsert_provider_accountCreate or update a provider account
delete_provider_accountRemove a provider account
set_workspace_provider_accountAssociate an account with a workspace
get_resolved_config_dirResolve the config directory for a provider account
check_provider_auth_statusCheck whether a provider account is authenticated
provider_auth_loginTrigger the CLI authentication flow for a provider
CommandDescription
get_provider_permissionsRead tool permissions for a provider
save_provider_permissionsWrite tool permissions for a provider
apply_provider_presetApply a permission preset (e.g. acceptEdits, bypassPermissions)
reset_provider_permissionsReset permissions to defaults
CommandDescription
configure_hooksInject Magia hook configuration into Claude Code settings
unconfigure_hooksRemove Magia hook configuration
check_hooks_configuredReturn whether hooks are configured
check_hooks_outdatedReturn whether hooks need updating
configure_statuslineConfigure the status-line hook
unconfigure_statuslineRemove the status-line hook
get_live_sessionsReturn map of all currently running sessions
CommandDescription
create_ptySpawn a new pseudo-terminal process
write_ptyWrite data to a PTY (keyboard input)
resize_ptyResize a PTY to a new column/row count
kill_ptyTerminate a PTY process
get_default_shellReturn the user’s default shell path
CommandDescription
list_directoryList directory contents
open_fileOpen a file via the OS default handler
read_file_contentRead a file’s text content
write_fileWrite content to a file
rename_fileRename or move a file
delete_fileDelete a file
create_directoryCreate a directory (including parents)
delete_directoryRecursively delete a directory
reveal_in_finderReveal a path in Finder (macOS) / file manager
pick_directoryShow an OS directory-picker dialog
open_in_editorOpen a file in the configured external editor
detect_installed_editorsDetect which external editors are installed
CommandDescription
search_in_filesRipgrep-powered content search across a directory
replace_in_filesMulti-file find-and-replace
CommandDescription
git_statusGet git status for a repository
git_file_diffGet the diff for a specific file
git_blame_lineGet git blame for a specific line
git_file_statusGet the status of a specific file
git_remote_urlGet the remote URL for a repository
git_worktree_rootGet the root of the current git worktree
git_create_snapshotCreate a snapshot commit (for session history)
git_create_worktreeCreate a new git worktree
git_remove_worktreeRemove a git worktree
git_list_worktreesList all git worktrees for a repository
git_show_fileShow file content at a specific git commit
CommandDescription
lsp_startStart an LSP server for a language/workspace
lsp_stopStop a running LSP server
lsp_hoverRequest hover information at a position
lsp_definitionGo to definition for a symbol
lsp_completionRequest code completions at a position
lsp_statusGet the running status of an LSP server
CommandDescription
transcribe_audioTranscribe an audio buffer using Whisper or Parakeet
get_stt_engine_infoReturn info about the active STT engine and loaded model
CommandDescription
list_available_modelsList downloadable Whisper model variants
get_installed_modelsList locally installed Whisper models
download_whisper_modelDownload a Whisper model to the cache
get_download_progressPoll download progress for a model
delete_whisper_modelDelete a locally installed Whisper model
download_parakeet_modelDownload the Parakeet STT model
delete_parakeet_modelDelete the locally installed Parakeet model
get_parakeet_model_statusCheck whether the Parakeet model is downloaded
CommandDescription
aggregate_project_costsAggregate token cost data for a project
get_session_jsonl_metricsRead token/cost metrics from a session JSONL file
get_batch_session_metricsRead metrics for multiple sessions at once
estimate_session_costEstimate cost for a session given a model
get_session_metricsGet OTel-collected metrics for a session
get_otel_statusReturn the OTel collector status and port
get_session_db_metricsRead persisted metrics from SQLite
CommandDescription
configure_otel_globalInject OTel env vars into all Claude Code accounts
unconfigure_otel_globalRemove OTel env vars from all Claude Code accounts
configure_otelInject OTel env vars for a specific account config dir
unconfigure_otelRemove OTel env vars for a specific account config dir
check_otel_configuredCheck whether OTel env vars are set for an account
CommandDescription
get_dashboard_statsReturn overview stats for the dashboard
get_analytics_dataReturn time-series analytics data
get_provider_usage_windowsReturn rolling usage windows by provider
get_project_statsReturn stats for a specific project
get_all_dashboard_dataReturn all dashboard data in one call
get_cached_dashboard_dataReturn cached dashboard data (avoids re-compute)
refresh_dashboard_dataInvalidate and re-compute dashboard data
CommandDescription
upsert_sessionInsert or update a session in the cache
load_and_check_sessionsLoad sessions and verify process liveness
load_all_sessionsReturn all sessions from the cache
remove_sessionRemove a session from the cache
set_session_viewUpdate the view state for a session
batch_upsert_sessionsBulk insert/update sessions
pin_sessionPin a session to the top of the list
unpin_sessionUnpin a session
CommandDescription
get_projectsReturn all projects from SQLite
save_projectInsert or update a project in SQLite
delete_projectDelete a project from SQLite
get_all_project_metricsReturn metrics for all projects
get_dashboard_daily_metricsReturn daily aggregated metrics
get_project_daily_metricsReturn daily metrics for a specific project
CommandDescription
get_workspacesReturn all configured workspaces
save_workspaceCreate or update a workspace
delete_workspaceDelete a workspace
merge_workspace_pathsMerge additional paths into an existing workspace
find_workspace_for_pathFind the workspace that contains a given path
auto_create_workspaceAutomatically create a workspace from a directory
resolve_workspace_for_sessionResolve the workspace for a specific session
resolve_workspaces_batchResolve workspaces for multiple sessions at once
detect_git_reposDetect git repos under a set of workspace paths
resolve_git_common_dirsResolve the git common dir for a list of paths

Extensions (MCP / Skills / Hooks / Agents)

Section titled “Extensions (MCP / Skills / Hooks / Agents)”
CommandDescription
list_mcp_serversList configured MCP servers for a provider account
add_mcp_serverAdd an MCP server to a provider account
remove_mcp_serverRemove an MCP server
update_mcp_serverUpdate MCP server configuration
add_global_mcp_serverAdd a global MCP server (all accounts)
remove_global_mcp_serverRemove a global MCP server
update_global_mcp_serverUpdate a global MCP server
list_skillsList available slash-command skills
get_skill_contentRead the content of a skill file
add_skillCreate a new skill
update_skillUpdate a skill
delete_skillDelete a skill
list_hooksList configured hooks
add_hookAdd a hook
remove_hookRemove a hook
update_hookUpdate a hook
list_agentsList available sub-agent definitions
get_agent_contentRead a sub-agent definition file
add_agentCreate a sub-agent definition
update_agentUpdate a sub-agent definition
delete_agentDelete a sub-agent definition
CommandDescription
list_marketplacesList configured plugin marketplaces
browse_marketplaceBrowse plugins from a marketplace
list_installed_pluginsList locally installed plugins
get_plugin_detailsGet details for a specific plugin
add_marketplaceAdd a new marketplace source
remove_marketplaceRemove a marketplace source
install_pluginInstall a plugin from a marketplace
uninstall_pluginUninstall a plugin
enable_pluginEnable an installed plugin
disable_pluginDisable a plugin
update_pluginUpdate a plugin to a newer version
CommandDescription
read_claude_mdRead a CLAUDE.md instruction file
write_claude_mdWrite a CLAUDE.md instruction file
list_claude_md_filesList all CLAUDE.md files in scope

Provider-specific (Claude / Gemini / Codex)

Section titled “Provider-specific (Claude / Gemini / Codex)”
CommandDescription
read_claude_settingsRead ~/.claude/settings.json
update_claude_settingsUpdate fields in ~/.claude/settings.json
read_gemini_settingsRead Gemini configuration
inject_gemini_hooksConfigure Magia hooks in Gemini settings
detect_gemini_hooks_configuredCheck whether Gemini hooks are set up
remove_gemini_hooks_commandRemove Magia hooks from Gemini settings
read_codex_configRead Codex configuration
get_claude_usageRead Claude account usage data
get_claude_profileRead Claude account profile
list_claude_ai_mcpsList MCP servers configured in Claude.ai
CommandDescription
get_observation_statsReturn stats about observations for a project
cleanup_old_observationsRemove observations older than retention policy
get_default_observation_promptReturn the default system prompt used for observations
get_default_reflection_promptReturn the default system prompt used for reflections
CommandDescription
get_memory_callsReturn log of memory tool calls
clear_memory_callsClear the memory audit log
CommandDescription
load_external_themesLoad user-installed themes from ~/.magia/themes/
get_themes_dirReturn the path to the themes directory
CommandDescription
load_keybindingsLoad custom keybinding overrides from disk
save_keybindingsPersist keybinding overrides to disk
CommandDescription
is_tray_availableReturn whether the system tray is available
get_tray_themeReturn the current tray icon theme
notify_tray_themePush a theme update to the tray icon
focus_main_windowBring the main window to the foreground
toggle_tray_panelShow or hide the tray panel
hide_tray_panelHide the tray panel
set_tray_panel_heightSet the height of the tray panel
get_tray_usageReturn current token usage for tray display
get_tray_sessionsReturn session list for tray display
get_tray_memory_activityReturn recent memory activity for tray display
get_tray_sync_statusReturn last sync time and status
force_tray_syncForce a tray data refresh
CommandDescription
ide_diff_responseSend a diff-accept/reject response to the IDE server
ide_resolve_requestResolve an IDE file-content request
ide_push_selectionPush the current editor selection to the agent
ide_add_workspace_folderAdd a folder to the IDE workspace
ide_get_portReturn the IDE WebSocket server port
ide_get_statusReturn the IDE server connection status
CommandDescription
send_session_notificationShow a native OS notification tied to a session
CommandDescription
store_auth_tokenPersist a cloud auth token in the OS keychain
get_auth_tokenRetrieve the stored cloud auth token
clear_auth_tokenRemove the cloud auth token from the keychain
get_current_userReturn the authenticated cloud user profile
validate_licenseValidate the active license with the cloud API
api_getAuthenticated GET to the Magia API
api_get_publicUnauthenticated GET to the Magia API
api_requestAuthenticated request (any method) to the Magia API
get_api_urlReturn the compile-time API base URL
get_cloud_urlReturn the compile-time cloud web UI URL
is_cloud_buildReturn whether this build has cloud features enabled
CommandDescription
resolve_home_dirReturn the user’s home directory path
get_default_shellReturn the user’s default shell
get_dashboard_daily_metrics(also under Database)
get_resource_usageReturn current CPU/memory usage
get_system_fontsReturn a list of system-installed font families
get_changelogReturn the parsed changelog entries
get_third_party_licensesReturn bundled third-party license text
get_claude_statusReturn the Claude API status page summary
find_symbol_definitionFind source symbol definition via LSP or ctags
get_autostart_enabledReturn whether launch-at-login is enabled
set_autostart_enabledEnable or disable launch-at-login
is_first_launchReturn whether settings.json is absent (fresh install)
start_background_syncStart all background services after onboarding
CommandDescription
factory_resetDelete all app data, unconfigure hooks, restart to onboarding
reset_cacheDelete sessions-cache.json
reset_notification_settingsReset notification settings to defaults
launch_react_devtoolsSpawn npx react-devtools (developer mode only)
kill_react_devtoolsTerminate React DevTools
check_react_devtoolsReturn whether React DevTools is running
check_cli_installedCheck whether the magia CLI is installed in $PATH
install_cliInstall the magia CLI symlink
uninstall_cliRemove the magia CLI symlink
CommandDescription
get_project_profilesReturn all project profiles (legacy)
save_project_profileSave a project profile
delete_project_profileDelete a project profile