# openUrlCommand

<!-- https://uncage.vercel.app/docs/api/agent/functions/openurlcommand/ -->

```ts
function openUrlCommand(url, platform): [string, string[]];
```

Defined in: agent/src/exe.ts:47

The command that opens `url` in the default browser: `open` · `xdg-open` · `rundll32 url.dll,FileProtocolHandler`.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `url` | `string` |
| `platform` | `Platform` |

## Returns

\[`string`, `string`[]\]
