# effects.add

Source: https://docs.lightair.app/developers/remote-api/effects.add

> Adds an effect to a source or a mixer strip.

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

Name one target: `object` or `source` for video effects; `track`, `bus`, `mix` or `master: true` for audio effects. `settings` are merged over the kind's defaults. A second studio look (`studio.*`) of a kind already there changes that one instead, as [effects.set](/developers/remote-api/effects.set) does.

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `object` | `string` | no | An object's id or name (its source's effects). |
| `scene` | `string` | no | The object's scene. Default: the scene being edited. |
| `source` | `string` | no | A source's id or name. |
| `track` | `string` | no | A mixer track's id or name (or its source's). |
| `bus` | `string` | no | A bus's id or name. |
| `mix` | `string` | no | A mix's id or name. |
| `master` | `boolean` | no | true for the master. |
| `kind` | `string` | yes | An effect kind from effects.kinds. |
| `settings` | `object` | no | Settings over the defaults. |
| `name` | `string` | no | Its name. |
| `enabled` | `boolean` | no | On or off. |
| `index` | `number` | no | Where in the list, from 0. Default: last. |

## Result

| Name | Type | Required | Description |
|---|---|---|---|
| `effect` | `string` | no | The new effect's id. |

## Errors

Invalid params (-32602) for a kind that doesn't fit the target (video effects on sources, audio effects on mixer strips), or a plugin without `settings.id`. Not found (-32004) for an unknown target or plugin.

## Events

- `workspace.changed`

## From an AI agent

The MCP server's `effects (action: add)` reaches this method.

## Example

```json
{ "jsonrpc": "2.0", "id": 1, "method": "effects.add", "params": { "source": "Webcam", "kind": "studio.bg_blur" } }
```

Result:

```json
{ "effect": "019ad3f6-5e6f-7071-8283-9e0f1a2b3c4d" }
```

## Related

- [effects.kinds](https://docs.lightair.app/developers/remote-api/effects.kinds.md)
- [effects.update](https://docs.lightair.app/developers/remote-api/effects.update.md)
- [effects.remove](https://docs.lightair.app/developers/remote-api/effects.remove.md)
