Turn an app feature on or off
cometchat_set_featureTurns one extension or AI feature (id from cometchat_list_features) on or off for a live app. AI features need an OpenAI key first (cometchat_set_openai_key). For extensions, confirmed: false means check the dashboard's Extensions page.
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>",
"feature_id": "<feature_id>",
"enabled": "<enabled>"
},
"name": "cometchat_set_feature"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes | The CometChat App ID (from cometchat_list_apps). | |
| confirm | No | Set true only after the user has explicitly agreed to this change. Without it, nothing happens and you get a summary to show them. | |
| enabled | Yes | true to turn on, false to turn off | |
| feature_id | Yes | Extension or AI feature id from cometchat_list_features |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | What kind of feature it is | |
| app_id | Yes | App ID | |
| enabled | Yes | Requested state | |
| message | No | CometChat's response | |
| confirmed | Yes | Whether reading the app back shows the new state. false = CometChat accepted the change but it isn't visible yet; tell the user to check the dashboard. | |
| feature_id | Yes | Feature id |