robovac_get_battery
Retrieve the current battery level of your Eufy RoboVac vacuum cleaner using this tool. Monitor power status to plan cleaning sessions effectively.
Instructions
Get the battery level of the robovac
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.ts:376-383 (registration)Registration of the 'robovac_get_battery' tool in the ListTools response, including name, description, and empty input schema.{ name: "robovac_get_battery", description: "Get the battery level of the robovac", inputSchema: { type: "object", properties: {}, }, },
- src/server.ts:627-637 (handler)Handler implementation for 'robovac_get_battery': ensures RoboVac is initialized, fetches battery level using robovac.getBatteyLevel(), and returns the percentage as text content.case "robovac_get_battery": this.ensureRoboVacInitialized(); const battery = await this.robovac!.getBatteyLevel(); return { content: [ { type: "text", text: `Battery Level: ${battery}%`, }, ], };