integrate_post
Fetch a chosen Looba snippet and receive integration instructions adapted to your project's framework, CSS approach, and naming conventions.
Instructions
Fetch a Looba snippet and return it with detailed integration instructions tailored to the user's project. The AI assistant MUST use the project_context to adapt class names, CSS variables, imports, and structure to match the target codebase. REQUIRES a valid proposal_token from a recent propose_snippets call and a user_choice matching the slug — the server enforces the 'propose 3, user picks one' workflow.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | The slug of the option the user picked (must match user_choice in the proposal_token) | |
| user_choice | Yes | Which option the user picked: 1, 2, or 3 (from the 3 options returned by propose_snippets) | |
| proposal_token | Yes | The proposal_token returned by the most recent propose_snippets call. Required. | |
| project_context | Yes | Description of the target project: framework (React/Vue/Svelte/vanilla/Next.js...), CSS approach (CSS modules, Tailwind, styled-components, SCSS, global CSS...), naming conventions (BEM, camelCase...), existing CSS variables or design tokens, component patterns, and the target file path where the snippet will be placed. | |
| target_file | No | The file path where the snippet will be integrated (helps with import paths) |