install_snippet
Insert a cookie-consent banner and legal-policy snippet into an HTML file before . Automatically matches your app's styles and avoids overwriting files without .
Instructions
Insert the LexVibe cookie-banner + hosted-policies snippet into an HTML file, right before . By default the banner is themed to match the app's own colors, fonts and radius (detected from its stylesheets). Idempotent: if the snippet is already in the file, nothing changes. If the file has no literal (e.g. a Next.js App Router layout.tsx), it does NOT modify the file: it returns the snippet plus exact instructions for you (the dev agent) to add it as JSX — it never corrupts user files. After deploying, confirm with verify_snippet that the snippet is live.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path of the file to install into (index.html, app/layout.tsx…). | |
| lang | No | Force the banner's language as an ISO 639-1 code, e.g. 'en' or 'es' (one of the 12 LexVibe locales). Defaults to the page's own language. | |
| appId | No | LexVibe app id, e.g. from claim_app/get_claim_status (defaults to the LEXVIBE_APP_ID env var; without either, the YOUR_APP_ID placeholder is used and flagged). | |
| theme | No | auto (default): match the banner to this app's colors, fonts and radius. off: LexVibe default look. | |
| accent | No | Banner accent color as a CSS hex value, e.g. #4f46e5. Defaults to the color detected from the app's own styles (see `theme`). | |
| position | No | Where the banner sits on screen: bottom (full-width bar), bottom-left or bottom-right (floating card in that corner). Defaults to bottom. |