# frontMostAppId

Identify the foreground app.

```js
frontMostAppId()
```

## Arguments

No arguments.

## Returns

Bundle ID string, or null.

## Example

```js
console.log(frontMostAppId());
```

[All JavaScript APIs](https://mcp.applesauceos.com/doc/api.md) · [Automation playbook](https://mcp.applesauceos.com/doc/ai.md)
