robovac_get_error_code
Retrieve the current error code from your Eufy RoboVac to diagnose and troubleshoot cleaning issues.
Instructions
Get the current error code 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_error_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Force refresh of cached data |
Implementation Reference
- src/server.ts:703-715 (handler)The handler logic for the robovac_get_error_code tool. Ensures the RoboVac instance is initialized, calls getErrorCode with optional force parameter, and returns the error code in the tool 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:179-192 (registration)Registration of the robovac_get_error_code tool in the listTools response, 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:62-68 (helper)Helper method called by the handler to ensure the RoboVac instance is initialized before executing the tool.
private ensureRoboVacInitialized(): void { if (!this.robovac) { throw new Error( "RoboVac not initialized. Please run robovac_auto_initialize or robovac_connect first." ); } }