# plugins.command

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

> Runs a command a helper or script plugin offers, and gives its answer.

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. |
| `command` | `string` | yes | The command's id, from plugins.list. |

## Result

| Name | Type | Required | Description |
|---|---|---|---|
| `(the answer)` | `any` | no | What the plugin answers. |

## Errors

A state error (-32005) when the plugin isn't running, has no such command, or fails.

## From an AI agent

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

## Related

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