Tauri Command Reference
This page documents the current command surface registered in src-tauri/src/lib.rs and consumed by the React frontend.
Naming and Payload Conventions
- Rust command names use
snake_case. - Frontend
invokecalls use the same command names. - Argument key casing depends on the command signature:
- direct function arguments typically use Rust-style names
- request structs can opt into
camelCasevia serde attributes (for exampleSpawnAgentRequest)
Command Groups
Agents (commands/agent.rs)
spawn_agentlist_agentslist_agent_metricskill_agentpause_agentresume_agentclear_agent_sessionrename_agentreorder_agentsupdate_agent_configenable_agent_worktreelist_agent_worktreesassign_agent_worktreedisable_agent_worktree
Worktree commands update agent config only. UI callers that move an agent between the source checkout and a worktree must follow the config command with clear_agent_session so the provider starts fresh in the new workspace instead of resuming across a cwd change. enable_agent_worktree accepts an optional worktree_name; when present, Wardian uses it for the wardian/<slug> branch and the per-agent worktrees/<slug> folder.
The live control protocol exposes CLI wrappers for the same worktree operations: agent_worktree_list, agent_worktree_enable, agent_worktree_join, and agent_worktree_disable. Unlike the raw Tauri worktree commands, the control mutation handlers call clear_agent_session after moving an agent workspace so CLI behavior matches the GUI flow.
Terminal (commands/terminal.rs)
send_input_to_agentsubmit_prompt_to_agentsend_binary_input_to_agentinject_session_inputbroadcast_inputresize_agent_terminalread_agent_pty
Classes (commands/class.rs)
list_agent_classescreate_agent_classdelete_agent_classget_default_class_instructionreset_class_to_defaultreset_all_class_prompts
Watchlists (commands/watchlist.rs)
load_watchlistssave_watchlists
The CLI read-only team and watchlist commands read watchlists/index.json directly. They normalize the current v2 state shape and legacy flat watchlist arrays but do not use a separate persistence format.
Filesystem and Explorer (commands/fs.rs)
resolve_system_include_directoriesvalidate_directory_pathget_explorer_rootget_directory_treedelete_filereveal_in_explorerread_file_preview
Workflows (commands/workflow.rs)
list_workflowssave_workflowdelete_workflowrun_workflowstop_all_triggersstop_workflow_triggersstop_workflow_runrun_scheduled_workflow_nowpause_all_triggersresume_all_triggersload_workflow_librarysave_workflow_librarylist_scheduled_runscreate_scheduled_rundelete_scheduled_runtoggle_scheduled_run
Library (commands/library.rs)
get_library_treesave_library_itemupdate_library_metadataopen_library_folderdeploy_skillremove_deployed_skilllist_deployed_skillslist_deployed_skill_refslist_skill_deploymentslibrary_watchlibrary_unwatch
Settings and Patch (commands/settings.rs, commands/patch.rs)
run_gemini_patchlist_available_shellsload_shell_settingssave_shell_settingssave_agent_session_persistencesave_opencode_theme
Git (commands/git.rs)
git_statusgit_current_branchgit_loggit_diff_filegit_stagegit_unstagegit_discard_changesgit_commitgit_pullgit_pushgit_create_worktreegit_remove_worktreegit_watchgit_unwatch
Event Surface (Backend -> Frontend)
Common app-level events:
agent-metricsagent-json-eventagent-pty-output-readyagent-terminal-clearedagents-updatedworkflow-telemetryworkflow-progressworkflow-status-updatedscheduled-runs-updatedgit-changedlibrary-changedwith payload{ "library_type": "skills" }
For payload semantics, see IPC and Event Governance and the workflow engine docs.
Change Management Guidance
When adding or changing commands:
- Register/unregister in
src-tauri/src/lib.rs. - Update frontend invoke callsites.
- Update this reference page.
- Update user or developer guides impacted by behavior changes.