Skip to content
Changelog

deck.set

Saves new pages for the Stream Deck that Lightair Live shows, if nobody changed it since you read it.

JSON-RPC 2.0project.write

Parameters

  • pagesobject[]requiredThe deck's pages.
  • base_versionnumberrequiredThe version you read with deck.get.

Result

  • versionnumberThe new version.

Errors

A state error (-32005) when base_version isn't the current version: the deck changed on another device, so read it again. Invalid params (-32602) without pages.

Events

Subscribers to events get deck.changed.

From an AI agent

The MCP server's stream_deck (action: set) reaches this method.

Example

ws://localhost:4455/rpc
{
"jsonrpc": "2.0",
"id": 1,
"method": "deck.set",
"params": {}
}

deck.get