stop_napcat_service
Safely terminate the local NapCatQQ sandbox process when taking the QQ bot offline or freeing ports 3000/3001; strict path checks prevent killing other Node.js processes.
Instructions
安全终止本地后台运行的 NapCatQQ 沙箱进程(严格校验进程可执行文件与入口路径,绝不误杀系统其他 Node.js 进程)。
适用场景:需要彻底下线当前 QQ 机器人、释放本地 3000/3001 端口或维护运行时目录时调用。不适用与替代:若希望重启服务或切换其他已缓存 QQ 号上线,请直接改用 switch_qq_account。
行为与副作用:破坏性但幂等的进程终止操作——调用后当前 QQ 账号立即离线且实时消息监听中断,直至重新调用 switch_qq_account、login_new_qq_by_qrcode 或任意触发自动自愈的核心工具;返回被终止的 PID 列表 stopped_processes 与端口状态。
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": "stop_napcat_service"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | 接口返回的业务负载数据(对象或数组,具体字段依工具而定) | |
| status | No | 执行状态标识,成功为 'ok'(或特定生命周期状态),失败为 'failed' 或 'error' | |
| message | No | 状态说明或错误诊断详情 | |
| retcode | No | OneBot 11 响应状态码,0 表示成功,非 0 表示协议端或网络错误 |