# editor.media.set

Source: https://docs.lightair.app/developers/remote-api/editor.media.set

> Changes a medium's bin, tags or name.

JSON-RPC 2.0 method of Lightair's Remote API (ws://localhost:4455/rpc). Group: Editor. Script plugins need the `project.write` permission.

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `media` | `string` | yes | The medium's id or name. |
| `bin` | `string | null` | no | Its bin; null takes it out of its bin. |
| `tags` | `string[]` | no | Its tags. |
| `name` | `string` | no | Its 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

- `editor.changed`

## From an AI agent

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

## Related

- [editor.media.list](https://docs.lightair.app/developers/remote-api/editor.media.list.md)
