Update service worker settings
pushengage_update_service_worker_settingsUpdate a site's Service Worker settings by merging only specified fields, including registration, subfolder support, and file path. Adjust PushEngage behavior without overwriting existing values.
Instructions
Updates the current site's Service Worker Settings. Pass only the fields you want to change: enable_service_worker_registration, enable_service_worker_in_subfolder, and/or service_worker_file_path. The tool reads the current values and merges your changes. When enable_service_worker_registration is true, service_worker_file_path must be non-empty after the merge. Provide at least one field. Returns the updated settings.
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": "pushengage_update_service_worker_settings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | No | Override the currently selected site. | |
| service_worker_file_path | No | Path for service worker file. Required when the service worker registration is enabled. | |
| enable_service_worker_in_subfolder | No | Enable addition of service worker in another sub-folder. | |
| enable_service_worker_registration | No | Enable the service worker registration from PushEngage. Disable it only if your site already registers its own service worker. When true, service_worker_file_path is required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service_worker_file_path | No | ||
| enable_service_worker_in_subfolder | No | ||
| enable_service_worker_registration | No |