> ## Documentation Index
> Fetch the complete documentation index at: https://docs.specterops.io/llms.txt
> Use this file to discover all available pages before exploring further.

# jxa

## Summary

Execute JavaScript for Automation (JXA) code within the context of the agent.   jxa

* Needs Admin: False
* Version: 1
* Author: @xorrior

### Arguments

#### code

* Description: JXA Code to execute.
* Required Value: True
* Default Value: None

## Usage

```
jxa {  "code": "ObjC.import('Cocoa'); $.NSBeep();" }
```

## Detailed Summary

This command uses the `OSAScript` Objective-C class and the `executeAndReturnError` method to compile and execute JXA code in-memory.
