---
title: Prompts
description: Guided workflow prompts for mcnanovna
---

import { Aside } from '@astrojs/starlight/components';

Prompts are pre-built conversation templates that guide your assistant through multi-step procedures. They set up context and provide step-by-step instructions for common workflows.

## Available Prompts

### Calibration & Setup

| Prompt | Description |
|--------|-------------|
| `calibrate` | Full SOLT calibration walkthrough |
| `export_touchstone` | Export S-parameters to .s1p/.s2p |

### Antenna Analysis

| Prompt | Description |
|--------|-------------|
| `analyze_antenna` | SWR, impedance, bandwidth analysis |
| `visualize_radiation_pattern` | Generate 3D pattern from S11 |
| `measure_antenna_range` | Automated 3D pattern with positioner |
| `import_pattern` | Import external pattern files |

### Component Analysis

| Prompt | Description |
|--------|-------------|
| `measure_component` | Identify unknown L/C/R |
| `analyze_crystal` | Crystal parameter extraction |
| `analyze_filter_response` | Filter characterization |
| `measure_lc_series` | Series LC resonator |
| `measure_lc_shunt` | Shunt LC resonator |

### Cable & Transmission Line

| Prompt | Description |
|--------|-------------|
| `measure_cable` | Cable characterization |
| `measure_tdr` | Time domain reflectometry |

### Design

| Prompt | Description |
|--------|-------------|
| `impedance_match` | L-network matching design |
| `compare_sweeps` | Before/after comparison |

## Prompt Parameters

Most prompts accept parameters to customize the workflow:

### calibrate

```
calibrate(
  band="2m",           # Ham band name or "custom"
  start_hz=144000000,  # Start frequency (overrides band)
  stop_hz=148000000,   # Stop frequency (overrides band)
  points=101,          # Sweep points
  save_slot=0          # Flash slot for calibration
)
```

### analyze_antenna

```
analyze_antenna(
  band="2m",           # Ham band name
  start_hz=None,       # Override start frequency
  stop_hz=None,        # Override stop frequency
  points=101           # Sweep points
)
```

### visualize_radiation_pattern

```
visualize_radiation_pattern(
  antenna_type="dipole",  # dipole, monopole, efhw, loop, patch, auto
  band="2m",
  points=101
)
```

<Aside type="tip">
Use `band="custom"` with explicit `start_hz` and `stop_hz` for frequencies outside the ham band presets.
</Aside>

## Ham Band Presets

| Band | Frequency Range |
|------|-----------------|
| 160m | 1.8 - 2.0 MHz |
| 80m | 3.5 - 4.0 MHz |
| 60m | 5.33 - 5.40 MHz |
| 40m | 7.0 - 7.3 MHz |
| 30m | 10.1 - 10.15 MHz |
| 20m | 14.0 - 14.35 MHz |
| 17m | 18.07 - 18.17 MHz |
| 15m | 21.0 - 21.45 MHz |
| 12m | 24.89 - 24.99 MHz |
| 10m | 28.0 - 29.7 MHz |
| 6m | 50 - 54 MHz |
| 2m | 144 - 148 MHz |
| 70cm | 420 - 450 MHz |
| 23cm | 1.24 - 1.30 GHz |
| full | 50 kHz - 900 MHz |
| hf | 1.8 - 30 MHz |
| vhf | 50 - 300 MHz |
| uhf | 300 MHz - 1 GHz |
