robovac_get_error_code
Retrieve the current error code of the Eufy RoboVac to diagnose issues. Optionally force a refresh of cached data for accurate status.
Instructions
Get the current error code of the robovac
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Force refresh of cached data |
Implementation Reference
- src/server.ts:179-192 (registration)Tool registration including name, description, and input schema definition.{ name: "robovac_get_error_code", description: "Get the current error code of the robovac", inputSchema: { type: "object", properties: { force: { type: "boolean", description: "Force refresh of cached data", default: false, }, }, }, },
- src/server.ts:703-715 (handler)The main handler function for executing the robovac_get_error_code tool. Ensures RoboVac is initialized, retrieves the error code (optionally forcing refresh), and formats the response.case "robovac_get_error_code": this.ensureRoboVacInitialized(); const errorCode = await this.robovac!.getErrorCode( args?.force as boolean ); return { content: [ { type: "text", text: `Error Code: ${errorCode}`, }, ], };
- src/server.ts:62-68 (helper)Helper method called by the handler to ensure the RoboVac instance is initialized before executing tool logic.private ensureRoboVacInitialized(): void { if (!this.robovac) { throw new Error( "RoboVac not initialized. Please run robovac_auto_initialize or robovac_connect first." ); } }
- src/server.ts:185-190 (schema)Input schema definition for the 'force' parameter.force: { type: "boolean", description: "Force refresh of cached data", default: false, }, },