# enrichScreenshotMetadata

**Kind:** Function

**Source:** [`atloria-monorepo/libs/parser-core/src/utils/screenshot-metadata-enricher.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/parser-core/src/utils/screenshot-metadata-enricher.ts#L46)

Enrich screenshot metadata with state machine context

Takes a screenshot URL and parsed entities, finds the matching component,
and adds state machine and UI interaction information.

## Signature

```ts
function enrichScreenshotMetadata(screenshotUrl: string, route: string, entities: Entity[], options: {
    title?: string;
    viewport?: { width: number; height: number };
    capturedAt?: Date;
    isModal?: boolean;
    parentUrl?: string;
  }): EnhancedScreenshotMetadata
```

## Parameters

| Name | Type |
|---|---|
| `screenshotUrl` | `string` |
| `route` | `string` |
| `entities` | `Entity[]` |
| `options` | `{
    title?: string;
    viewport?: { width: number; height: number };
    capturedAt?: Date;
    isModal?: boolean;
    parentUrl?: string;
  }` |

**Returns:** `EnhancedScreenshotMetadata`
