# PermsExec

<!-- https://uncage.vercel.app/docs/api/agent/type-aliases/permsexec/ -->

```ts
type PermsExec = (file, args) => Promise<{
  stderr: string;
  stdout: string;
}>;
```

Defined in: agent/src/perms.ts:8

Runs a command without a shell (same shape as the agent's `ExecFn`).

## Parameters

| Parameter | Type |
| ------ | ------ |
| `file` | `string` |
| `args` | `string`[] |

## Returns

`Promise`\<\{
  `stderr`: `string`;
  `stdout`: `string`;
\}\>
