Skip to main content

Module app_commands

Module app_commands 

Source
Expand description

Tauri command boundary and frontend-safe application state.

Structs§

AccountView
An account with its presence, as shown in the interface.
AppStateDto
Everything the interface needs to render, without secrets.
CatalogueSummary
A catalogue widget that isn’t installed.
Runtime
Shared state for commands, managed by Tauri.
SettingsDto
The settings the interface reads and edits.
WidgetHostSession
A widget surface to load and the session ID its requests must carry.
WidgetSummary
An installed widget, as shown in the interface.

Enums§

FrontendPresence 🔒
Presence as the interface shows it.
LogLevel
Severity of a record written by the interface or a widget.

Constants§

CANCEL_POLL 🔒
How often a join waiting between accounts checks whether it was stopped.
CATALOGUE_FRESH 🔒
How long a loaded catalogue is used before the next state request checks for newer widgets.
CATALOGUE_RETRY 🔒
How soon a failed catalogue download is retried, such as when Toolblox starts before the network is up.
DEFAULT_WINDOW 🔒
The default window size in logical pixels, from tauri.conf.json. Snapping keeps its shape.
FIRST_LAUNCH_DELAY 🔒
First wait before a ticket request is retried.
LAUNCH_RETRIES 🔒
Ticket requests retried per account before the join fails.
MAX_LAUNCH_DELAY 🔒
Longest gap between launches after failures.
MAX_WIDGET_STORE_BYTES 🔒
Largest value a widget can keep in its own store.
MAX_WRITTEN_LOG_BYTES 🔒
Longest message accepted from the interface or a widget before it’s cut.
MINI_WINDOW_HEIGHTS 🔒
MINI_WINDOW_WIDTH 🔒
The mini window’s width, and the range of heights it can grow to, in logical pixels.
MIN_WINDOW 🔒
The minimum window size in logical pixels, from tauri.conf.json.
MIN_WINDOW_HEIGHT 🔒
POPOUTS_CHANGED 🔒
Event sent to every window with the open popouts’ widget IDs whenever one opens or closes.
QUEUE_POLL 🔒
How often the queue checks whether the account it launched is in game.
QUEUE_TIMEOUT 🔒
Longest the queue waits for one account before launching the next, for a client that crashed or never finished loading.
WIDGETS_CHANGED
Event sent to every window when the widget catalogue reloads, or when development builds reinstall widgets from the working tree.
WIDGET_ORIGIN 🔒
Base URL for installed widget assets. Windows WebView2 serves custom schemes over HTTP.

Functions§

account_views 🔒
Adds presence to each account.
backfill_profiles 🔒
Fills in names and avatars for accounts saved without an avatar.
begin_roblox_login
Opens the Roblox sign-in window and waits for it, then adds or updates the signed-in account. The previous session is restored if saving the account fails.
cancel_join
Cancels the joins in progress for account_ids, or every join in progress when it’s None. An account that already opened Roblox stays in game.
catalogue_due 🔒
Whether the catalogue should be requested again.
catalogue_entry 🔒
Returns a widget’s entry in the verified catalogue.
change_relationship
Sends a friend request, follows, blocks, or undoes one of these, as an account.
check_sessions 🔒
Checks every saved session with Roblox once, so expired ones show before they’re used. Network failures leave the state unchanged.
claim_catalogue_check 🔒
Records a catalogue check when one is due. Returns whether this is the first check.
close_all_clients
Closes every running Roblox client, force-closing any that don’t close normally, and returns how many were running.
close_popout 🔒
Closes a widget’s popout window, if one is open.
close_widget_popout
Closes a widget’s own window, returning the widget to the main window.
close_widget_session
command_error 🔒
Converts an error to the message returned to the interface.
dispatch_widget_request 🔒
Runs an authorized widget method.
download_package 🔒
Downloads a catalogue entry’s package. Development builds package local catalogue folders instead.
embed_theme_files
Inlines the local CSS files that theme CSS imports and embeds the files its url()s name.
export_theme
Writes the saved theme to a new CSS file in the Downloads folder, shows it in Explorer or Finder, and returns its path.
find_installed_widget 🔒
Returns an installed widget by ID.
followed_place 🔒
Returns a followed player’s place when the joining account can see it. Only Roblox Studio stops the join: privacy settings report a player in game as online or offline to accounts that can’t see their game, and the Roblox client reports a failed follow itself.
forget_recent_place
Removes a place from the recent list.
get_app_state
Returns the full interface state. The first call waits for the catalogue; later calls recheck it in the background when it’s stale and announce WIDGETS_CHANGED once it loads. Development builds without a catalogue URL rebuild it from the working tree on every call.
get_online_friends
Returns an account’s online friends, read with that account’s session.
get_relationship
Returns an account’s friend, follow, and block status with a player, read with that account’s session.
get_theme
Returns the custom theme CSS.
get_widget_store
Reads the free-form JSON value a widget keeps for itself.
insert_widget_session 🔒
Registers a widget session with a random ID.
install_catalogue_widget 🔒
Downloads and installs a widget from the verified catalogue.
install_widget
Installs a catalogue widget that isn’t installed yet.
installed_widgets 🔒
Summarizes installed widgets, noting newer catalogue versions.
join_account_ids 🔒
Joins each account at place_id when given, otherwise at its own place or the default place. A player target follows that player, and fails for any account that can see they aren’t in a game.
join_accounts
Joins each account, at place_id when given, then minimizes the window if that setting is on. place_id may also be @ and a user ID, which follows that player into their game.
mini_window_size 🔒
The mini window’s size for a requested height, kept within its range.
module_url 🔒
A module’s URL, tagged with the installed package’s hash, or its version when no install record exists. The page keeps each imported module by URL until it reloads, so a reinstall or update needs a new URL to load the new code.
name_recent_places 🔒
Looks up names for recent places that don’t have one yet and drops places Roblox doesn’t know. Network failures leave the name unset so the next refresh tries again.
next_launch_delay 🔒
Doubles a retry wait, from one second up to five.
now_seconds 🔒
Current Unix time in seconds.
open_data_folder
Opens the app folder, which holds the widgets folder, in Explorer or Finder.
open_log_folder
Opens the log folder in Explorer or Finder.
open_popouts 🔒
IDs of widgets open in their own window, sorted, leaving out closing.
open_roblox_profile
Opens a player’s Roblox profile in a window signed in as an account, for friend requests and follows Roblox only allows after its own verification check.
open_widget
Starts a session for a widget surface: main, settings, dashboard, or module.
open_widget_popout
Opens an enabled module widget in its own window, or shows the window when it’s already open.
optional_string_array 🔒
Reads an optional array of strings, defaulting to empty.
other_player 🔒
Rejects a social lookup or change an account would make with itself.
place_exists
Reports whether Roblox knows the place. Network failures are errors, not a missing place.
read_log
Returns up to lines of the most recent log lines, 300 by default, or the whole log when all is set.
read_response_limited 🔒
Reads a response body, failing with too_large once it exceeds maximum bytes.
refresh_catalogue_data 🔒
Downloads and verifies the signed widget catalogue, recording any error for the interface. Debug builds without a catalogue URL use an empty catalogue.
remember_verified_place 🔒
Adds a place or player to the recent list once Roblox confirms it exists. One that doesn’t exist, or can’t be checked, isn’t added. Players are saved with their username.
remove_account
Removes an account and its stored session. The account is restored if the session can’t be deleted.
reorder_accounts
Saves a manual account order. account_ids must list every account once.
required_string 🔒
Reads a required non-empty string parameter.
required_u64 🔒
Reads a required non-negative integer parameter.
required_u64_array 🔒
Reads a required non-empty array of account IDs.
restart_app
Restarts Toolblox, optionally without loading any widgets for the next session.
retry_catalogue
Loads the widget catalogue again.
save_settings
Validates and saves settings, applies always on top, and changes launch at login. The settings are restored if launch at login can’t be changed.
save_theme
Validates and saves the custom theme CSS.
search_places
Searches Roblox for games by name, for the place fields.
search_players
Finds players by username or display name.
session_verdict 🔒
Whether a Roblox response shows the session expired (Some(true)), valid (Some(false)), or says nothing about it (None). Only a 401 means Roblox no longer accepts the session.
set_account_pinned
Pins an account to the dashboard, or unpins it.
set_account_place
Sets or clears the place a single account joins instead of the default place.
set_catalogue_error 🔒
Records a catalogue error and returns it. A catalogue that already loaded stays in use, so a failed recheck doesn’t hide it.
set_mini_window
Turns the main window into the mini window, height logical pixels tall, or restores it when height is None. The mini window is borderless, fixed in size, and always on top. Restoring brings back the previous position and size and the Always on top setting.
set_widget_enabled
Turns an installed widget on or off, stopping its processes when turned off.
set_widget_store
Replaces the free-form JSON value a widget keeps for itself.
show_notification
Shows a system notification, used in place of in-app messages while the mini window is open. The title and body are cut to 64 and 256 characters.
snap_window
Leaves fullscreen or maximized and resizes the main window to the default aspect ratio, keeping its width where it fits on the screen.
snapped_window_size 🔒
The size with the default aspect ratio for a window width wide, at least the minimum height, and shrunk to fit available.
start_window_drag
Moves the main window with the pointer, for the mini window, which has no title bar.
sync_local_widgets
Reinstalls installed widgets whose folder under widgets/ in the working tree changed since the last call, stopping their processes first. seen keeps each folder’s fingerprint between calls. Returns whether any widget was reinstalled. Development builds only.
take_updated
Returns whether this launch is the first since an update. Only the first call returns true.
uninstall_widget
Stops a widget’s processes, removes it, and clears its settings.
update_account_notes
Replaces an account’s notes, up to 10,000 characters: its note for the game at place_id when given, otherwise its general note. An empty game note is removed.
update_widget
Stops a widget’s processes and installs its newer catalogue version.
wait_until_in_game 🔒
Waits until Roblox reports account_id in game, stop returns true, or QUEUE_TIMEOUT passes. An account that was already in game counts as joined at once, because Roblox keeps reporting its old server until the new client takes over.
widget_asset_url 🔒
Returns the URL of a file in an installed widget.
widget_network_fetch 🔒
Fetches an HTTPS URL for a widget and returns the status and a text body of up to 1 MB.
widget_request
Authorizes a widget message against its session and runs it. Method failures are returned in the response rather than as a command error.
widget_summary 🔒
Summarizes one installed widget.
widget_target 🔒
Log target for a widget’s records.
without_session_cookie 🔒
Refuses a widget response that contains a Roblox session cookie, whatever its source.
write_log
Writes a record from the interface, or from a widget when widget_id is set. Every line is redacted and messages over 8 KB are cut.
write_record 🔒
Writes a record for target, cutting overlong messages first.

Type Aliases§

CredentialRollback 🔒
The account and previous session to restore if saving a signed-in account fails.