---
url: 'https://adk.nht.io/api/@nhtio/adk/batteries/media/functions/lowerSegments.md'
---

# Function: lowerSegments()

```ts
function lowerSegments(segments: RawSegment[]): MediaPlan;
```

Defined in: [src/batteries/media/pipe.ts:355](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/media/pipe.ts#L355)

Lower raw segments to an (unvalidated) [MediaPlan](../interfaces/MediaPlan.md). Quoted-JSON arg parsing and
type/enum checks happen in the validator, which consumes the raw segments — this lowering
exists for tooling that wants the structural plan without validation.

## Parameters

| Parameter  | Type                                          | Description                                |
| ---------- | --------------------------------------------- | ------------------------------------------ |
| `segments` | [`RawSegment`](../interfaces/RawSegment.md)\[] | Output of [parsePipeRaw](parsePipeRaw.md). |

## Returns

[`MediaPlan`](../interfaces/MediaPlan.md)

The structural plan (args carried as parsed, json args still strings).
