# automation.run

Source: https://docs.lightair.app/developers/remote-api/automation.run

> Runs an automation now, as if its trigger had happened.

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

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `automation` | `string` | yes | Its id or name. |
| `args` | `string[]` | no | A command's words. |

## Errors

Not found (-32004) for an unknown automation.

## From an AI agent

The MCP server's `run_automation` reaches this method.

## Example

```json
{ "jsonrpc": "2.0", "id": 1, "method": "automation.run", "params": { "automation": "Shout-out", "args": ["@friend"] } }
```

Result:

```json
{}
```

## Related

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