# lg_runs_start: Start an agent run

Start an agent run now (dry_run: true to see what it would do without doing it).

- **Changes data:** yes
- **Credential scope:** `agents:write` (an API key's scopes, or what you allowed when connecting with OAuth)
- **Assistant level:** an assistant at Full; a lower level is refused

## Inputs

| Field | Type | Required | Notes |
|---|---|---|---|
| `body` | object (agent, version_id, dry_run, input) | yes |  |
| `body.agent` | string | yes | A built-in agent key (system.demo) or an agent id (agt_…) |
| `body.version_id` | string | no | Run a specific published version (default: the current one) |
| `body.dry_run` | boolean | no | Writes return their change set without happening |
| `body.input` | object | no |  |

## Example MCP call

A `tools/call` request to `https://manage.restolayer.com/mcp`:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "lg_runs_start",
    "arguments": {
      "body": {
        "agent": "agt_01HZXEXAMPLE",
        "dry_run": true
      }
    }
  }
}
```

## Example REST call

The same thing over REST (`POST /v1/runs`):

```bash
curl -s -X POST "https://manage.restolayer.com/v1/runs" \
  -H "Authorization: Bearer $LG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"agent":"agt_01HZXEXAMPLE","dry_run":true}'
```

All tools: [MCP tools](https://www.restolayer.com/docs/mcp/tools). Connecting: [connect your assistant](https://www.restolayer.com/docs/connect).
