rift_widget_snippet
Generates ready-to-paste Rift sign-in widget embed code for HTML, React, or Next.js, using your project API key so developers can add authentication to a site or app.
Instructions
Return a ready-to-paste embed snippet for the Rift sign-in widget. Use this when a developer asks 'how do I add Rift to my site/app'. The output is a fully runnable code block keyed by their framework (html/react/nextjs). Each snippet uses the project's actual API key.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "rift_widget_snippet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Initial mode the modal opens in. Users can still toggle between sign-in and sign-up inside the modal. | signin |
| apiKey | No | Override the currently-set project API key. Defaults to whichever key was set via rift_set_api_key. | |
| framework | No | Where the widget will be embedded. 'html' for vanilla / any non-React framework; 'react' for a Vite/CRA React app; 'nextjs' for App Router. | html |