wps_reload_addin
Reload WPS add-in code without restarting the application. After modifying add-in JavaScript files, call this tool to instantly apply changes to the specified host or all hosts.
Instructions
热更新:让指定宿主的 WPS 加载项重新加载 addin 代码,无需完全退出并重启 WPS。修改加载项 js 后(含重新发布/手动同步到容器)调用它以立即生效。host 省略则三个宿主都重载。
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": "wps_reload_addin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | 重载哪个宿主的加载项,默认全部 |