robovac_get_battery
Check the battery level of your Eufy RoboVac to monitor cleaning readiness and plan charging cycles.
Instructions
Get the battery level of the robovac
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": "robovac_get_battery"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.ts:627-637 (handler)Handler implementation for the robovac_get_battery tool. Ensures the RoboVac is initialized and calls getBatteyLevel() on the robovac instance to retrieve the battery level, then returns it as a text response.
case "robovac_get_battery": this.ensureRoboVacInitialized(); const battery = await this.robovac!.getBatteyLevel(); return { content: [ { type: "text", text: `Battery Level: ${battery}%`, }, ], }; - src/server.ts:377-383 (registration)Tool registration in the MCP server's tools list, including the 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:379-382 (schema)Input schema definition for the robovac_get_battery tool, which expects no parameters (empty object).
inputSchema: { type: "object", properties: {}, },