Expand description
Tauri command boundary and frontend-safe application state.
Structs§
- Account
View - An account with its presence, as shown in the interface.
- AppState
Dto - Everything the interface needs to render, without secrets.
- Catalogue
Summary - A catalogue widget that isn’t installed.
- Runtime
- Shared state for commands, managed by Tauri.
- Settings
Dto - The settings the interface reads and edits.
- Widget
Host Session - A widget surface to load and the session ID its requests must carry.
- Widget
Summary - An installed widget, as shown in the interface.
Enums§
- Frontend
Presence 🔒 - 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’sNone. 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_CHANGEDonce 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_idwhen 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_idwhen given, then minimizes the window if that setting is on.place_idmay 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
widgetsfolder, 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, ormodule. - 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
linesof the most recent log lines, 300 by default, or the whole log whenallis set. - read_
response_ 🔒limited - Reads a response body, failing with
too_largeonce it exceedsmaximumbytes. - 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_idsmust 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,
heightlogical pixels tall, or restores it whenheightisNone. 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
widthwide, at least the minimum height, and shrunk to fitavailable. - 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.seenkeeps 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_idwhen 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_idin game,stopreturnstrue, orQUEUE_TIMEOUTpasses. 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_idis 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§
- Credential
Rollback 🔒 - The account and previous session to restore if saving a signed-in account fails.