/install kmb-bus-arrival
name: kmb-bus-arrival description: Retrieve real-time KMB bus arrival information. getNextArrivals returns plain text; other tools return JSON. version: 1.1.7 author: Steven Ho repository: https://github.com/StevenHo1394/kmb-bus-arrival tools:
-
name: getRouteDirection description: List available travel directions for a KMB route. Returns JSON. command: python3 kmb_bus.py getRouteDirection {route} inputSchema: type: object required: [route] properties: route: type: string output: format: json
-
name: getRouteInfo description: Get the list of stops for a route with sequence numbers. Returns JSON. command: python3 kmb_bus.py getRouteInfo {route} {direction} inputSchema: type: object required: [route, direction] properties: route: type: string direction: type: string enum: ["outbound", "inbound"] output: format: json
-
name: getBusStopID description: Find bus stop ID(s) by name (Chinese or English). Returns JSON. command: python3 kmb_bus.py getBusStopID {name} inputSchema: type: object required: [name] properties: name: type: string output: format: json
-
name: getNextArrivals description: Get the next bus arrival times for a specific route/direction/stop. Returns plain text. command: python3 kmb_bus.py getNextArrivals {route} {direction} {stopId} inputSchema: type: object required: [route, direction, stopId] properties: route: type: string direction: type: string enum: ["outbound", "inbound", "auto"] stopId: type: string output: format: text
Implementation:
-
getNextArrivals output:
*Route (To Destination)* Stop: *Human Readable Stop Name* Next arrivals: - HH:MM HKT - HH:MM HKTIf direction="auto" and the stop is served in both directions, multiple blocks are printed.
-
Auto-direction: direction="auto" tries both inbound and outbound; reports whichever has the stop. If both, both are shown.
-
Alternate stop ID fallback: If the given stop ID is not found on the route, the skill searches the route's stop list for a stop whose Chinese or English name matches the intended location and uses that stop's ID instead.
-
All tools except getNextArrivals return JSON.
-
Errors: getNextArrivals prints human-readable messages; other tools return JSON with an
errorfield.
version: 1.1.7 changes:
- Full removal of caching — all API calls are fresh
- Plain-text errors for getNextArrivals; JSON errors for other tools
- Auto-direction and alternate stop ID fallback retained
- Docs aligned with code
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install kmb-bus-arrival - 安装完成后,直接呼叫该 Skill 的名称或使用
/kmb-bus-arrival触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
KMB and LWB Bus Arrivals 是什么?
Get real-time KMB bus arrival times by route, direction, and stop using the official API for accurate next bus ETAs. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 343 次。
如何安装 KMB and LWB Bus Arrivals?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install kmb-bus-arrival」即可一键安装,无需额外配置。
KMB and LWB Bus Arrivals 是免费的吗?
是的,KMB and LWB Bus Arrivals 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
KMB and LWB Bus Arrivals 支持哪些平台?
KMB and LWB Bus Arrivals 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 KMB and LWB Bus Arrivals?
由 Steven Ho(@stevenho1394)开发并维护,当前版本 v1.1.7。