# plugins.restart

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

> Stops a helper or script plugin and starts it again.

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

A restart counts toward the three restarts a plugin gets in five minutes.

## Parameters

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

## Result

| Name | Type | Required | Description |
|---|---|---|---|
| `restarted` | `boolean` | no | true. |

## Errors

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

## From an AI agent

The MCP server's `plugins (action: restart)` reaches this method.

## Related

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