PlaiiinLight lamps

v0.3.8
io.github.nebeleben/plaiiinlight-mcp Checked 13 hours ago Published 14 days ago

Control PlaiiinLight LED lamps on your local network: colour, effects, images, scenes, firmware.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

lamps_guide Read a guide

Read the guide for a job before doing it — how the tools fit together, what to check, what to avoid. Topics: compose-effect (Use when the user wants a new light effect, animation or pattern on a PlaiiinLight lamp, or wants an existing effect script changed or fixed — writing, previewing, uploading, playing and tuning `shade()` scripts with the plaiiin-lamps tools.); draw-image (Use when the user wants a still picture, icon, pixel art, emoji, text or a PNG shown on a PlaiiinLight lamp, or wants saved lamp images listed, shown, copied or deleted — with the plaiiin-lamps image tools.); flee…

ParameterTypeDescription
topic *stringWhich guide

lamps_discover Discover lamps on the LAN

Browse the local network (mDNS, ~3 s) for PlaiiinLight lamps. Unpaired lamps (no owner yet) are added to the fleet with full (admin) access. Lamps already in the fleet are reported as `known` (their address is refreshed). Lamps that are paired but not in the fleet are listed under `needsKey`: the user must create an AI access key for this computer in the PlaiiinLight app (Share tab → AI access) and add it with lamp_add_shared.

lamps_list List lamps

List every lamp in this computer's fleet with its access (role, and for AI keys the granted permissions and brightness cap), form, grid, firmware and swarm, plus live state (on, color, mode, brightness, current effect, scene) read from each lamp in parallel. Offline lamps show `online: false` with the reason. Read-only.

lamp_info Lamp details

Details of one lamp: the fleet entry (access role / AI permissions, form, grid, firmware, swarm) plus the lamp's live GET /api info and GET /api/state. Read-only.

ParameterTypeDescription
lamp *stringLamp name or deviceId

lamp_add_shared Add a shared lamp

Add a lamp someone shared with this computer (an AI access key or a creator/user share key, made in the PlaiiinLight app's Share tab). Give exactly one source: `fromClipboard: true` (preferred — the share link is read from the macOS clipboard so the key never passes through the chat), `qrImagePath` (path to a PNG/JPEG of the share QR code), or `url` (a pasted http://<lamp>/config?t=… link). With no source the clipboard is used. The key is stored in the macOS Keychain and never returned; the result shows the lamp name, role and permissions.

ParameterTypeDescription
fromClipboardbooleanRead the share link from the clipboard (macOS)
qrImagePathstringAbsolute path to a PNG or JPEG of the share QR code
urlstringShare link http://<lamp>/config?t=<key> (may be inside other text)

lamp_forget Forget a lamp

Remove a lamp from this computer's fleet and delete its stored key. Only local: the lamp and its key on the lamp are not changed (revoke the key in the app's Share tab if wanted). Destructive and two-step: the first call returns `{needsConfirmation, summary, confirm}` and does nothing — show the summary to the user, and only after they agree call again with the same arguments plus `confirm: "<token>"` (valid 120 s).

ParameterTypeDescription
lamp *stringLamp name or deviceId
confirmstringToken from the first call, after the user agreed

lamp_rename Rename a lamp

Change a lamp's name (POST /api/name; 1–32 bytes, no quotes/backslashes). Needs an unpaired lamp or an AI key with the `rename` permission. The lamp restarts to apply it and is offline for a few seconds. Destructive and two-step: the first call returns `{needsConfirmation, summary, confirm}` and does nothing — show the summary to the user, and only after they agree call again with the same arguments plus `confirm: "<token>"` (valid 120 s).

ParameterTypeDescription
lamp *stringLamp name or deviceId
name *stringNew name, 1–32 bytes
confirmstringToken from the first call, after the user agreed

swarms_list List swarms

Show which lamps are linked in a swarm (lamps in one swarm mirror scene changes and effect tunes to each other). Reads GET /api/swarm on every lamp live. Returns `swarms` (swarm id + members), `solo` (lamps in no swarm) and `unknown` (lamps whose key can't read membership: the lamp only shows it to its owner or to an AI key with the `swarm` permission — ask the owner to add `swarm` to the AI key in the app's Share tab). Unreachable lamps are listed under `unreachable` and grouped by their last known swarm. Read-only; this server never joins or leaves swarms.

lamp_state Lamp state

Read the live state of one or more lamps (on, color, mode, brightness, current effect, fps, active scene). Read-only; any key may read. Returns one result per lamp: `{lamp, ok: true, …}` or `{lamp, ok: false, skipped?, reason}`.

ParameterTypeDescription
lamps *Lamp names or deviceIds (one string, a list), or "all" for every lamp in the fleet

lamp_power Power on/off

Switch one or more lamps on or off. Needs the `control` permission on AI keys (any user/creator/admin key works). Returns one result per lamp: `{lamp, ok: true, …}` or `{lamp, ok: false, skipped?, reason}`.

ParameterTypeDescription
lamps *Lamp names or deviceIds (one string, a list), or "all" for every lamp in the fleet
on *booleantrue = on, false = off

lamp_color Solid color

Fill one or more lamps with one solid color (switches them to api mode, stopping any effect). Needs the `control` permission on AI keys (any user/creator/admin key works). Returns one result per lamp: `{lamp, ok: true, …}` or `{lamp, ok: false, skipped?, reason}`.

ParameterTypeDescription
color *"#rrggbb" or [r, g, b] with 0–255 each
lamps *Lamp names or deviceIds (one string, a list), or "all" for every lamp in the fleet

lamp_brightness Brightness

Set the brightness (0–255) of one or more lamps. An AI key may carry a brightness cap; the lamp clamps to it and the result reports the brightness actually applied. Needs the `control` permission on AI keys (any user/creator/admin key works). Returns one result per lamp: `{lamp, ok: true, …}` or `{lamp, ok: false, skipped?, reason}`.

ParameterTypeDescription
lamps *Lamp names or deviceIds (one string, a list), or "all" for every lamp in the fleet
value *integerBrightness 0–255

lamp_mode Render mode

Set the render mode of one or more lamps: `api` (solid color), `js` (effect scripts), `frame` (the stored still image) or `stream` (live frames over the WebSocket). Needs the `control` permission on AI keys (any user/creator/admin key works). Returns one result per lamp: `{lamp, ok: true, …}` or `{lamp, ok: false, skipped?, reason}`.

ParameterTypeDescription
lamps *Lamp names or deviceIds (one string, a list), or "all" for every lamp in the fleet
mode *string

lamp_play Play effects

Effect playback on one or more lamps: `play` with `effect` runs that effect (name from effects_list); `play` without `effect` resumes the lamp's current selection; `next` / `prev` step through the effects alphabetically; `stop` stops playback. Needs the `control` permission on AI keys (any user/creator/admin key works). Returns one result per lamp: `{lamp, ok: true, …}` or `{lamp, ok: false, skipped?, reason}`.

ParameterTypeDescription
action *string
lamps *Lamp names or deviceIds (one string, a list), or "all" for every lamp in the fleet
effectstringEffect name for action "play"

effects_list List effects

List the effects on a lamp with description, tags and `builtIn` (built-ins are compiled into the firmware: they can be played and tuned but have no source to read, copy or delete). `playing` is the running effect. Read-only.

ParameterTypeDescription
lamp *stringLamp name or deviceId

effect_read Read effect source

Read the JavaScript source of an uploaded effect on a lamp (built-ins have none). Read-only.

ParameterTypeDescription
lamp *stringLamp name or deviceId
name *stringEffect name as listed by effects_list

lamp_form_prompt Lamp form for effect writing

Before writing an effect for a lamp: its physical form and pixel layout in words (`prompt`, from the lamp; the owner may have customised it), its grid size, and the `shade()` script contract (`contract`). Write the script for exactly this grid, check it with effect_preview, then effect_validate, then effect_upload. Read-only.

ParameterTypeDescription
lamp *stringLamp name or deviceId

effect_validate Validate effect on the lamp

Check a script with the lamp's own validator (the same check an upload runs). Nothing is stored. Returns `{valid: true}` or `{valid: false, error}` with the lamp's own error text. Needs the `effects` permission on AI keys, creator or admin otherwise.

ParameterTypeDescription
lamp *stringLamp name or deviceId
source *stringJavaScript source defining `function shade(x, y, idx, frame, base, params)`

effect_compile Compile effect on the lamp

Compile a script to the lamp's bytecode (reports the bytecode size). Nothing is stored. Returns `{valid: true}` or `{valid: false, error}` with the lamp's own error text. Needs the `effects` permission on AI keys, creator or admin otherwise.

ParameterTypeDescription
lamp *stringLamp name or deviceId
source *stringJavaScript source defining `function shade(x, y, idx, frame, base, params)`

effect_preview Preview effect locally

Render a `shade()` script on this computer with the lamp runtime (no lamp needed, nothing is sent) and return the first frames as one PNG, already enlarged for viewing (each frame about 192 px): frames in reading order — left to right, then top to bottom, `columns` per row as the text part says — frame i at time i·1000/fps ms, pixel (0,0) top-left of each frame. Show this picture to the user as it is. Give `lamp` to use its grid and base color, or `w` and `h`. `params` overrides @param defaults. The text part lists the grid, the params found and a warning when every frame is black. Read-o…

ParameterTypeDescription
source *stringJavaScript source defining `function shade(x, y, idx, frame, base, params)`
fpsnumberFrames per second the frames are spaced at (default 10)
framesintegerFrames to render (1–60, default 8)
hintegerGrid height (without `lamp`)
lampstringLamp name or deviceId
paramsobjectTune values by param name, e.g. {"speed": 3}
wintegerGrid width (without `lamp`)

effect_upload Upload effect

Store a `shade()` script on one or more lamps under `name` (the lamp validates it; its error text comes back as the reason). It does not start playing — use lamp_play. A name that is a built-in on a lamp is skipped there. If the effect already exists (with a different script) on any target, the first call returns {needsConfirmation, summary, confirm}: show the summary to the user and repeat the call with `confirm` only after they agree. Needs the `effects` permission on AI keys, creator or admin otherwise. Returns one result per lamp: `{lamp, ok: true, …}` or `{lamp, ok: false, skipped?, r…

ParameterTypeDescription
lamps *Lamp names or deviceIds (one string, a list), or "all" for every lamp in the fleet
name *stringEffect name (1–32 letters, digits, _ or -)
source *stringJavaScript source defining `function shade(x, y, idx, frame, base, params)`
confirmstringToken from a previous needsConfirmation answer

effect_delete Delete effect

Delete an uploaded effect from one or more lamps (built-ins can't be deleted). Always two-step: the first call returns {needsConfirmation, summary, confirm}; show the summary to the user and repeat with `confirm` only after they agree. Needs the `effects` permission on AI keys, creator or admin otherwise. Returns one result per lamp: `{lamp, ok: true, …}` or `{lamp, ok: false, skipped?, reason}`.

ParameterTypeDescription
lamps *Lamp names or deviceIds (one string, a list), or "all" for every lamp in the fleet
name *stringEffect name as listed by effects_list
confirmstringToken from a previous needsConfirmation answer

effect_tunes_get Read effect tunes

Read an effect's tunable params on a lamp: range, default, live `value` and description; `values` maps name → live value. Read-only.

ParameterTypeDescription
lamp *stringLamp name or deviceId
name *stringEffect name as listed by effects_list

effect_tunes_set Set effect tunes

Set tune values of an effect (partial: only the params given). They apply live and persist; the lamp clamps them to range and the result reports the applied values. Lamps in one swarm mirror tunes, so per swarm one member gets the request and the others report `viaSwarm`. Needs `effects` on AI keys (any user key works). Returns one result per lamp: `{lamp, ok: true, …}` or `{lamp, ok: false, skipped?, reason}`.

ParameterTypeDescription
lamps *Lamp names or deviceIds (one string, a list), or "all" for every lamp in the fleet
name *stringEffect name as listed by effects_list
values *objectTune values by param name, e.g. {"speed": 3}

effect_copy Copy effect between lamps

Copy an effect from one lamp to others, with the source lamp's tune values (as the apps' swarm sync does). A built-in effect has no source to copy: only its tunes travel, and a target without that built-in fails with "script <name> isn't on this lamp". If the effect already exists (with a different script) on any target, the first call returns {needsConfirmation, summary, confirm}: show the summary to the user and repeat the call with `confirm` only after they agree. Needs the `effects` permission on AI keys, creator or admin otherwise. Returns one result per lamp: `{lamp, ok: true, …}` or `…

ParameterTypeDescription
from *stringSource lamp name or deviceId
name *stringEffect name as listed by effects_list
to *Lamp names or deviceIds (one string, a list), or "all" for every lamp in the fleet
confirmstringToken from a previous needsConfirmation answer

library_list List the local library

List what is saved in the local library of this plugin, on this computer: effects, images or scenes. Read-only.

ParameterTypeDescription
kind *string

library_save_effect Save effect to the library

Save an uploaded effect from a lamp (source + its current tune values) into the library on this computer, under the same name. Replacing a different library entry of that name first returns {needsConfirmation, summary, confirm}: show the summary and repeat with `confirm` only after the user agrees. Built-ins have no source and can't be saved. Reads the lamp only.

ParameterTypeDescription
lamp *stringLamp name or deviceId
name *stringEffect name (1–32 letters, digits, _ or -)
confirmstringToken from a previous needsConfirmation answer

library_push_effect Push a library effect to lamps

Upload an effect from the library on this computer (with its saved tune values) to one or more lamps. If the effect already exists (with a different script) on any target, the first call returns {needsConfirmation, summary, confirm}: show the summary to the user and repeat the call with `confirm` only after they agree. Needs the `effects` permission on AI keys, creator or admin otherwise. Returns one result per lamp: `{lamp, ok: true, …}` or `{lamp, ok: false, skipped?, reason}`.

ParameterTypeDescription
lamps *Lamp names or deviceIds (one string, a list), or "all" for every lamp in the fleet
name *stringEffect name (1–32 letters, digits, _ or -)
confirmstringToken from a previous needsConfirmation answer

images_list List saved images

List the images saved on a lamp (at most `max`, usually 30): id, label, size and `fitsGrid` (only images drawn for the lamp's current grid can be shown). Image ids (`img-001`, …) are per lamp: the same id on two lamps is usually a different image. Read-only.

ParameterTypeDescription
lamp *stringLamp name or deviceId

image_draw Draw an image

Draw a still image on lamps and show it (frame mode). Give either `pixels` — rows (top to bottom) of colours ("#rrggbb" or [r,g,b]), exactly the lamp's grid (see images_list / lamp_form_prompt; a grid of another size fails there with "needs a W×H grid") — or `pngPath`, a PNG file on this computer (≤ 16 MB, ≤ 4096×4096 px) that is resized to each lamp's grid (transparent = off). This replaces the lamp's current drawing (an unsaved drawing is lost) and stops the playing effect or scene. With `save` (default true) the image is also saved on the lamp (with `label`) and its `id` returned;…

ParameterTypeDescription
lamps *Lamp names or deviceIds (one string, a list), or "all" for every lamp in the fleet
labelstringLabel for the saved image (1–32 bytes)
pixelsarrayRows of colours, exactly the lamp grid (h rows of w)
pngPathstringAbsolute path of a PNG file to draw, resized to each lamp's grid
savebooleanAlso save it on the lamp (default true)

image_show Show a saved image

Show a saved image on lamps (frame mode). Image ids (`img-001`, …) are per lamp: the same id on two lamps is usually a different image. An image drawn for another grid fails with "geometry mismatch". Needs the `images` permission on AI keys, creator or admin otherwise. Returns one result per lamp: `{lamp, ok: true, …}` or `{lamp, ok: false, skipped?, reason}`.

ParameterTypeDescription
id *stringImage id as listed by images_list (e.g. img-001)
lamps *Lamp names or deviceIds (one string, a list), or "all" for every lamp in the fleet

image_label Label a saved image

Set the label of a saved image (1–32 bytes, no control characters; "" clears it). Scenes keep working (they use the id). Needs the `images` permission on AI keys, creator or admin otherwise.

ParameterTypeDescription
id *stringImage id as listed by images_list (e.g. img-001)
label *stringNew label; "" clears it
lamp *stringLamp name or deviceId

image_delete Delete a saved image

Delete a saved image from lamps. Image ids (`img-001`, …) are per lamp: the same id on two lamps is usually a different image. Scenes that show it can't be activated afterwards. Always two-step: the first call returns {needsConfirmation, summary, confirm}; show the summary to the user and repeat with `confirm` only after they agree. Needs the `images` permission on AI keys, creator or admin otherwise. Returns one result per lamp: `{lamp, ok: true, …}` or `{lamp, ok: false, skipped?, reason}`.

ParameterTypeDescription
id *stringImage id as listed by images_list (e.g. img-001)
lamps *Lamp names or deviceIds (one string, a list), or "all" for every lamp in the fleet
confirmstringToken from a previous needsConfirmation answer

image_get Look at a saved image

Return a saved image as a PNG (scaled up for viewing, at most 1024 px a side) plus its id, label and size. Read-only.

ParameterTypeDescription
id *stringImage id as listed by images_list (e.g. img-001)
lamp *stringLamp name or deviceId

image_copy Copy an image between lamps

Copy a saved image (with its label) from one lamp to others, as the apps' swarm sync does. Only lamps with the same grid can take it (others fail with "needs a W×H lamp"); a target that already has the identical image reuses it. The target's current drawing is kept. Returns the image's `id` on each target. Needs the `images` permission on AI keys, creator or admin otherwise. Returns one result per lamp: `{lamp, ok: true, …}` or `{lamp, ok: false, skipped?, reason}`.

ParameterTypeDescription
from *stringSource lamp name or deviceId
id *stringImage id as listed by images_list (e.g. img-001)
to *Lamp names or deviceIds (one string, a list), or "all" for every lamp in the fleet

library_save_image Save image to the library

Save an image from a lamp into the library on this computer. `name` defaults to the image's label (spaces → dashes, other characters dropped) or its id. Replacing a different library image of that name first returns {needsConfirmation, summary, confirm}: show the summary and repeat with `confirm` only after the user agrees. Reads the lamp only.

ParameterTypeDescription
id *stringImage id as listed by images_list (e.g. img-001)
lamp *stringLamp name or deviceId
confirmstringToken from a previous needsConfirmation answer
namestringLibrary name (1–32 letters, digits, _ or -)

library_push_image Push a library image to lamps

Save an image from the library on this computer onto lamps (with its label). Only lamps with the image's grid can take it (others fail with "needs a W×H lamp"); a lamp that already has the identical image reuses it. Returns the image's `id` on each lamp; use image_show to display it. Needs the `images` permission on AI keys, creator or admin otherwise. Returns one result per lamp: `{lamp, ok: true, …}` or `{lamp, ok: false, skipped?, reason}`.

ParameterTypeDescription
lamps *Lamp names or deviceIds (one string, a list), or "all" for every lamp in the fleet
name *stringLibrary image name (see library_list)

scenes_list List scenes

List the scenes saved on a lamp (name and document; up to 32) and which one is active (`active`, null when the lamp no longer shows it). Read-only.

ParameterTypeDescription
lamp *stringLamp name or deviceId

scene_get Read a scene

Read one scene document from a lamp. Read-only.

ParameterTypeDescription
lamp *stringLamp name or deviceId
name *stringScene name (1–32 letters, digits, _ or -)

scene_put Write a scene

Create or overwrite a scene on lamps from a document (`script` must exist on the lamp, `image` is a saved image id of that lamp; a scene does not change power unless `on` is given explicitly). Up to 32 scenes per lamp (more fails with "scene store full"). If a target already has a scene of that name (or, for a copy, a different script of the script's name), the first call returns {needsConfirmation, summary, confirm}: show the summary to the user and repeat the call with `confirm` only after they agree. Needs the `scenes` permission on AI keys, creator or admin otherwise. Returns one result pe…

ParameterTypeDescription
doc *objectScene document; every field optional, an absent field means "leave as is"
lamps *Lamp names or deviceIds (one string, a list), or "all" for every lamp in the fleet
name *stringScene name (1–32 letters, digits, _ or -)
confirmstringToken from a previous needsConfirmation answer

scene_capture Capture the current state as a scene

Save what a lamp shows right now (effect + tunes, image, colour, brightness; not power) as a scene. Replacing an existing scene of that name first returns {needsConfirmation, summary, confirm}: show it and repeat with `confirm` only after the user agrees. Needs the `scenes` permission on AI keys, creator or admin otherwise.

ParameterTypeDescription
lamp *stringLamp name or deviceId
name *stringScene name (1–32 letters, digits, _ or -)
confirmstringToken from a previous needsConfirmation answer

scene_activate Activate a scene

Apply a saved scene on lamps (effect/image/colour/brightness; power is left as is). Lamps in one swarm mirror it, so one member gets the request and the others report `viaSwarm`. Needs the `control` permission on AI keys. Returns one result per lamp: `{lamp, ok: true, …}` or `{lamp, ok: false, skipped?, reason}`.

ParameterTypeDescription
lamps *Lamp names or deviceIds (one string, a list), or "all" for every lamp in the fleet
name *stringScene name (1–32 letters, digits, _ or -)

scene_delete Delete a scene

Delete a scene from lamps. Always two-step: the first call returns {needsConfirmation, summary, confirm} naming the lamps that have it; show it to the user and repeat with `confirm` only after they agree. Needs the `scenes` permission on AI keys, creator or admin otherwise. Returns one result per lamp: `{lamp, ok: true, …}` or `{lamp, ok: false, skipped?, reason}`.

ParameterTypeDescription
lamps *Lamp names or deviceIds (one string, a list), or "all" for every lamp in the fleet
name *stringScene name (1–32 letters, digits, _ or -)
confirmstringToken from a previous needsConfirmation answer

scene_copy Copy a scene between lamps

Copy a scene from one lamp to others as the apps' swarm sync does: an uploaded script (source + tune values) and the scene's image travel along (the image is saved on the target, the scene points at its new id); a target with another grid gets the scene without the image and a `warning`; a built-in script must exist on the target. The scene is written without power. If a target already has a scene of that name (or, for a copy, a different script of the script's name), the first call returns {needsConfirmation, summary, confirm}: show the summary to the user and repeat the call with `confirm` o…

ParameterTypeDescription
from *stringSource lamp name or deviceId
name *stringScene name (1–32 letters, digits, _ or -)
to *Lamp names or deviceIds (one string, a list), or "all" for every lamp in the fleet
confirmstringToken from a previous needsConfirmation answer

library_save_scene Save a scene to the library

Save a scene from a lamp into the library on this computer under the same name, with its uploaded script (source + tune values) and its image pixels, so it can be pushed to other lamps. Replacing a different library entry first returns {needsConfirmation, summary, confirm}: show it and repeat with `confirm` only after the user agrees. Reads the lamp only.

ParameterTypeDescription
lamp *stringLamp name or deviceId
name *stringScene name (1–32 letters, digits, _ or -)
confirmstringToken from a previous needsConfirmation answer

library_push_scene Push a library scene to lamps

Write a scene from the library on this computer to lamps, with its script and image (as scene_copy). If a target already has a scene of that name (or, for a copy, a different script of the script's name), the first call returns {needsConfirmation, summary, confirm}: show the summary to the user and repeat the call with `confirm` only after they agree. Needs the `scenes` permission on AI keys, creator or admin otherwise. Returns one result per lamp: `{lamp, ok: true, …}` or `{lamp, ok: false, skipped?, reason}`.

ParameterTypeDescription
lamps *Lamp names or deviceIds (one string, a list), or "all" for every lamp in the fleet
name *stringLibrary scene name (see library_list)
confirmstringToken from a previous needsConfirmation answer

stream_start Stream frames to lamps

Stream an animation live to lamps over their WebSocket (`/ws`) for `seconds` (default 30, at most 600) at `fps` (1–30, default 20). `source` is one of: `{gifPath}` — an animated GIF on this computer (≤ 16 MB, ≤ 4096×4096, ≤ 1000 frames; its own frame delays are kept); `{pngPaths}` — PNG files played in order, one per frame; `{script, params?}` — a `shade()` effect script rendered on this computer in a sandbox (as effect_preview; @state values restart every 2 s batch). Every frame is resized to each lamp's logical grid and the source loops. Returns at once with a `streamId`; noth…

ParameterTypeDescription
lamps *Lamp names or deviceIds (one string, a list), or "all" for every lamp in the fleet
source *What to stream: {gifPath} | {pngPaths} | {script, params?}
fpsintegerFrames per second (1–30, default 20)
secondsnumberHow long to stream (default 30, at most 600)

stream_stop Stop streaming

Stop a stream started by stream_start (or every stream when `streamId` is omitted). Each lamp gets a clear frame, then its connection closes and the lamp goes back to what it showed before. Returns the stopped stream ids.

ParameterTypeDescription
streamIdstringStream id from stream_start; omit to stop all

streams_list List streams

Running streams of this session (id, source, fps, end time, and per lamp: state and frames sent), plus the last few that ended and why. Read-only.

firmware_check Check for firmware updates

Compare lamps' firmware with the newest PlaiiinLight firmware release on GitHub. Per lamp: `current`, `latest`, `update` (true when a newer build for the lamp's form and chip exists, with its `asset`), `upToDate`, or a `reason` such as "no build for <form>/<target>". Read-only (reads GitHub and the lamps).

ParameterTypeDescription
lamps *Lamp names or deviceIds (one string, a list), or "all" for every lamp in the fleet

firmware_update Update lamp firmware

Install the newest PlaiiinLight firmware release from GitHub on lamps that run an older version (see firmware_check). Always two-step: the first call returns {needsConfirmation, summary, confirm} listing each lamp `current → new`; show the summary to the user and repeat with `confirm` only after they agree. Lamps are updated one at a time: the image is downloaded once (≤ 8 MB) and checked against the release's SHA256SUMS (a release without one is refused), uploaded, and the lamp reboots (unavailable for up to a minute); the tool waits until it reports the new version (≤ 90 s). The first…

ParameterTypeDescription
lamps *Lamp names or deviceIds (one string, a list), or "all" for every lamp in the fleet
confirmstringToken from a previous needsConfirmation answer