Get the Mira widget install snippet
get_mira_widget_embedRetrieve the embed snippet to paste before and the preview URL for testing a saved, disabled widget using its webChat publicKey.
Instructions
Return the embed snippet a website owner pastes before , plus the preview URL for testing a saved-but-disabled widget. Requires the webChat publicKey minted when widget configuration is first saved.
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": "get_mira_widget_embed"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | Yes | Whether the widget is live | |
| snippet | Yes | Paste before </body> | |
| loaderUrl | Yes | ||
| publicKey | Yes | ||
| previewUrl | Yes | Works while the widget is still disabled | |
| widgetPageUrl | Yes | ||
| allowedDomains | Yes |