# mapPlaceholdersWithIntelligence

**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#L448)

Maps screenshot placeholders to exact specs using source code intelligence.
In production, the inner mapping would be done by an AI agent with the
intelligence injected into its context. For the POC, we use heuristic matching.

## Signature

```ts
function mapPlaceholdersWithIntelligence(intelligence: SourceCodeIntelligence, docs: DocScreenshotRequest[], siteUrl: string): AgentScreenshotSpec[]
```

## Parameters

| Name | Type |
|---|---|
| `intelligence` | `SourceCodeIntelligence` |
| `docs` | `DocScreenshotRequest[]` |
| `siteUrl` | `string` |

**Returns:** `AgentScreenshotSpec[]`
