get_install_snippet
Retrieve the framework-specific install snippet for an existing site. Use when the snippet was never installed or the user switched frameworks.
Instructions
Re-fetch the framework-specific install snippet for an existing site. Use this when the snippet was printed earlier but never installed, when the user switched frameworks, or when they ask 'where's the gizmo install snippet for foo.com?', 'how do I install Gizmo on this project?', 'show me the tracking code'. Supports: next, react, vite, remix, astro, nuxt, sveltekit, html. Same install-vs-print rule as create_site: if the user asked to install / add / set up, EDIT the file the snippet.instructions field names rather than printing the snippet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | Internal site UUID for the target site. Get one from list_sites. | |
| framework | No | Web framework of the user's project. Detect from package.json + config files: next.config.* → next, nuxt.config.* → nuxt, svelte.config.* → sveltekit, astro.config.* → astro, remix.config.* or @remix-run/* → remix, vite.config.* → vite, otherwise react or html. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | The site row. | |
| public_key | Yes | ||
| public_key_prefix | Yes | ||
| public_key_freshly_minted | Yes | ||
| snippet | Yes | ||
| note | Yes |