RemoteControlRegistry๏
Inherits: Object
Registry of remote control commands exposed over HTTP and to scripts.
Description๏
Engine singleton that stores named commands as callables. Built-in commands are registered when RemoteControlServer starts. Projects can add custom commands with register_command().
Commands are invoked via POST /v1/exec with body { "command": "name", "args": {} } or through execute().
Methods๏
void |
clear() |
execute(name: String, args: Dictionary) |
|
has_command(name: String) const |
|
list_commands() const |
|
void |
|
void |
register_command(name: String, callable: Callable, description: String = "", schema: Dictionary = {}) |
void |
unregister_command(name: String) |
Method Descriptions๏
void clear() ๐
Removes all registered commands.
Dictionary execute(name: String, args: Dictionary) ๐
Executes a registered command and returns its result dictionary.
bool has_command(name: String) const ๐
Returns whether name is registered.
Array list_commands() const ๐
Returns an array of command metadata dictionaries (name, description, schema).
void register_builtins() ๐
Registers the built-in remote control command set.
void register_command(name: String, callable: Callable, description: String = "", schema: Dictionary = {}) ๐
Registers a command. The callable receives a single Dictionary of args and should return a Dictionary result.
void unregister_command(name: String) ๐
Removes a registered command.