Add template
install_templateAdds a template to an app: its commands, event listeners, messages and stored variables, with the parameters filled in. Messages the template posts in a channel are posted right away. Templates not made by Kite are made by other users, so tell the user who made it and ask before adding one. Get the template with get_template and app_id first, and ask the user for the parameters you can't pick from list_channels and list_roles. When the app has a command with the same name, the template's command gets a number, like /giveaway-2, so tell the user the names the result has.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"app_id": "<app_id>",
"template_id": "<template_id>"
},
"name": "install_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | The keys of the commands and event listeners to add. Defaults to all of them. Messages and stored variables are always added, the others use them. | |
| app_id | Yes | The ID of the app, from list_apps. | |
| messages | No | For messages with written_by_user, the message like Discord's API takes it, by the message's key. Without it, it's the template's text. | |
| server_id | No | The ID of the server, from list_servers, the channels of the parameters are in. Needed when a message is posted. | |
| parameters | No | Values of the parameters by their key. Channels and roles are their IDs, yes/no ones (type boolean) are true or false. | |
| template_id | Yes | The ID of the template, from search_templates. |