Kind: Function
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
tsfunction mapPlaceholdersWithIntelligence(intelligence: SourceCodeIntelligence, docs: DocScreenshotRequest[], siteUrl: string): AgentScreenshotSpec[]
Parameters
| Name | Type |
|---|---|
intelligence | SourceCodeIntelligence |
docs | DocScreenshotRequest[] |
siteUrl | string |
Returns: AgentScreenshotSpec[]
Was this page helpful?