# buildSandboxArgs

**Kind:** Function

**Source:** [`atloria-monorepo/libs/agent-core/src/tools/bash-sandbox.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/agent-core/src/tools/bash-sandbox.ts#L84)

Build the argument array for spawning a command under sandbox-exec.

## Signature

```ts
function buildSandboxArgs(command: string, rootDir: string): string[]
```

## Parameters

| Name | Type |
|---|---|
| `command` | `string` |
| `rootDir` | `string` |

**Returns:** `string[]`
