# komrad rpc

Call the server's endpoints, one subcommand per RPC

[komrad](https://komrad.dev/latest/cli.md)

```bash
komrad rpc
```

Call the server's endpoints from a script.

Every subcommand here is one RPC, named as the MCP tool surface names it, so a script and a model ask for the same operation by the same name. Request fields are flags, and the response is the API's own JSON on stdout.

Each subcommand is one endpoint, documented with its request and response in the [API reference](https://komrad.dev/latest/api.md).

## Inherited flags

| Flag | Type | Description |
| --- | --- | --- |
| [`--config`](https://komrad.dev/latest/cli/rpc.md#inherited-config) | stringArray | path to a config TOML, repeatable, later files win over earlier ones |
| [`--engine`](https://komrad.dev/latest/cli/rpc.md#inherited-engine) | string | engine to reach: local for this machine, or a file in the config's engines directory, layered over the config |
