robovac_get_work_mode
Retrieve the current work mode of the Eufy RoboVac vacuum cleaner, with an option to force refresh cached data for accurate status updates.
Instructions
Get the current work mode of the robovac
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Force refresh of cached data |
Implementation Reference
- src/server.ts:717-729 (handler)The handler logic for the robovac_get_work_mode tool. Ensures RoboVac is initialized, fetches the current work mode (with optional force refresh), and returns it as a text response.case "robovac_get_work_mode": this.ensureRoboVacInitialized(); const workMode = await this.robovac!.getWorkMode( args?.force as boolean ); return { content: [ { type: "text", text: `Work Mode: ${workMode}`, }, ], };
- src/server.ts:193-206 (registration)Tool registration in the ListTools response, defining the name, description, and input schema for robovac_get_work_mode (optional 'force' boolean parameter).{ name: "robovac_get_work_mode", description: "Get the current work mode of the robovac", inputSchema: { type: "object", properties: { force: { type: "boolean", description: "Force refresh of cached data", default: false, }, }, }, },
- src/server.ts:196-206 (schema)Input schema definition for the robovac_get_work_mode tool, specifying an optional 'force' boolean to refresh cached data.inputSchema: { type: "object", properties: { force: { type: "boolean", description: "Force refresh of cached data", default: false, }, }, }, },
- src/server.ts:62-68 (helper)Helper method used by the handler to ensure the RoboVac instance is initialized before calling tool logic.private ensureRoboVacInitialized(): void { if (!this.robovac) { throw new Error( "RoboVac not initialized. Please run robovac_auto_initialize or robovac_connect first." ); } }