mcs_wait_for_status
Poll a Minecraft server instance until it reaches the target running or stopped status, confirming start, stop, or restart operations complete within a specified timeout.
Instructions
等待指定服务器实例达到目标状态(每 5 秒轮询一次),用于启动/停止/重启后确认操作完成——替代原插件“后台推送通知”能力。达到目标状态返回 reached=true,超时返回 reached=false 并附当前状态。
Args: instance_name: 服务器实例名称或实例 UUID,如 生存服、SMP target_status: 目标状态:running(运行中)或 stopped(已停止),也接受中文 运行中/已停止 timeout_seconds: 最长等待秒数(默认 300,范围 5~1800)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance_name | Yes | ||
| target_status | Yes | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||