# specsToWorkerBatch

**Kind:** Function

**Source:** [`atloria-monorepo/packages/doc-automation/src/v2/stages/stage-12-screenshots/agent-screenshot-mapper.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/packages/doc-automation/src/v2/stages/stage-12-screenshots/agent-screenshot-mapper.ts#L629)

Convert agent screenshot specs to the BatchScreenshotItem format
expected by the screenshot worker.

## Signature

```ts
function specsToWorkerBatch(specs: AgentScreenshotSpec[], siteUrl: string): any[]
```

## Parameters

| Name | Type |
|---|---|
| `specs` | `AgentScreenshotSpec[]` |
| `siteUrl` | `string` |

**Returns:** `any[]`
