mimic_pipeline_resolve
Resolves HTML input for Figma builds by classifying, rendering client-rendered pages if needed, and returning a validated HTML file path. Use outputPath if status is READY; report error if FAILURE.
Instructions
Deterministic input resolver for HTML → Figma builds. Provide a URL, local HTML file path, or raw HTML content. The controller classifies the input (DIRECT_HTML vs RENDERED_DOM_REQUIRED), renders client-rendered pages automatically if needed, validates the result, and returns a ready-to-build HTML file path. ALWAYS call this BEFORE starting any HTML → Figma build. If result.status is READY, use result.outputPath as build input. If result.status is FAILURE, do NOT proceed — report the error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL to resolve. Fetched and classified automatically. | |
| htmlFilePath | No | Path to a local HTML file. Skips fetch, classifies directly. | |
| htmlContent | No | Raw HTML string. Skips fetch, classifies directly. | |
| timeout | No | Render timeout in ms. Default: 30000. | |
| cookies | No | Auth cookies for rendering. Each: { name, value, domain, path }. |