<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->
<!-- NERF is a trademark of defconxt. -->
# performing-ghidra-scripting — API Reference

## Agent Script

| Command | Description |
|---------|-------------|
| `run_script --target <path>` | Execute Ghidra script on target binary. |
| `list_scripts --target <path>` | List available Ghidra analysis scripts. |
| `generate --target <path>` | Generate Ghidra script for specified analysis type. |

## Usage Examples

```bash
# Execute Ghidra script on target binary.
node scripts/agent.js run_script --target ./sample

# List available Ghidra analysis scripts.
node scripts/agent.js list_scripts --target ./sample

# Generate Ghidra script for specified analysis type.
node scripts/agent.js generate --target ./sample
```

## Output Format

All commands return JSON with the following structure:

```json
{
  "action": "<command>",
  "result": {
    "action": "<command>",
    "status": "complete",
    "domain": "<domain>",
    "technique": "performing-ghidra-scripting"
  }
}
```
