Skip to content
Changelog

editor.media.set

Changes a medium's bin, tags or name.

JSON-RPC 2.0project.write

Parameters

  • mediastringrequiredThe medium's id or name.
  • binstring | nullIts bin; null takes it out of its bin.
  • tagsstring[]Its tags.
  • namestringIts name.

Errors

Not found (-32004) for an unknown medium. A state error (-32005) when no Editor project is open, or the open one is read-only because a newer Lightair made it.

Events

Subscribers to events get editor.changed.

From an AI agent

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

Example

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

editor.media.list