# plugins.step

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

> Runs an automation step a helper or script plugin offers, with its fields, 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.

Every parameter other than `package` and `step` is passed to the step as its fields.

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `package` | `string` | yes | The plugin's package id. |
| `step` | `string` | yes | The step's id, from plugins.list. |

## Result

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

## Errors

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

## Related

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