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()

Dictionary

execute(name: String, args: Dictionary)

bool

has_command(name: String) const

Array

list_commands() const

void

register_builtins()

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.