Get Installation Code
get-installation-codeReturn the ready-to-paste Chatway JavaScript snippet for the connected account. The installation ID is account-based and requires no widget selection. If the user asks for the code, show it immediately under the heading "Your Chatway installation code", with script_html in a copyable HTML code block, followed by the placement text. Keep installation_id and script_url out of that response unless the user asks for them. If the user asks to install Chatway, check the target website for an existing installation first, add the snippet only once, and verify that the widget loads afterward. If a different account’s installation is detected, confirm which account the user wants before replacing it.
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-installation-code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| placement | No | ||
| script_url | No | ||
| script_html | No | Ready-to-paste script tag. Contains no secrets. | |
| duplicate_check | No | ||
| installation_id | No | Account installation ID. Not a widget ID. |