reload_module
Reload a specified bot module after code changes without restarting the bot, and return the failure reason if the reload fails.
Instructions
热重载指定模块(改动模块代码后无需重启机器人)。
受机器人配置 allow_module_reload 开关控制(默认允许);重载失败时返回失败原因。
Args: name: 模块名
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": {
"name": "<name>"
},
"name": "reload_module"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |