You can make requests to your engine over HTTP (using curl in a linux shell, or Postman, or a browser location bar). For example, the request
will allow you to know which version of the pico engine you are running and give you an event channel identifier (ECI) for the engine's root pico, so that you can begin interacting with it programmatically. For example,
The pico engine installs the following rulesets in the root pico:
io.picolabs.wrangler - provides an operating system or the pico and includes functions and rules that make interacting with the pico more convenient.
io.picolabs.subscription - provides functions and rules that support pico-to-pico bi-directional subscriptions.
io.picolabs.pico-engine-ui - provides an API for the engine UI.
The ui channel has policies in place which allow the UI application to send events that are handled by the io.picolabs.pico-engine-ui ruleset, and to make queries to functions defined and shared by that same ruleset.
This will confirm the engine ui channel of the pico (line 2), and give you the engine ui channel for each of its direct children (lines 3-7), along with the pico's name (line 8), its background color, position and size in the UI.
To install a ruleset in the pico, use an event like this (here using the hello_world ruleset as an example):