# plugins.enable

Source: https://docs.lightair.app/developers/remote-api/plugins.enable

> Turns a helper or script plugin on or off.

JSON-RPC 2.0 method of Lightair's Remote API (ws://localhost:4455/rpc). Group: Packages and plugins. Script plugins can't call it.

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `package` | `string` | yes | The plugin's package id or name. |
| `enabled` | `boolean` | yes | On or off. |

## Result

| Name | Type | Required | Description |
|---|---|---|---|
| `enabled` | `boolean` | no | As set. |

## Errors

Not found (-32004) when it isn't installed. Invalid params (-32602) when the package isn't a helper or script, or is PiAir. Invalid params (-32602) without `enabled`.

## From an AI agent

The MCP server's `plugins (action: enable or disable)` reaches this method.

## Related

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