robovac_set_work_mode
Control your Eufy RoboVac's cleaning behavior by selecting from modes like AUTO, SPOT, or EDGE for targeted vacuuming tasks.
Instructions
Set the cleaning mode of the robovac
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | The work mode to set |
Implementation Reference
- src/server.ts:120-133 (registration)Tool registration in the listTools response, including name, description, and input schema defining the 'mode' parameter with allowed enum values.
name: "robovac_set_work_mode", description: "Set the cleaning mode of the robovac", inputSchema: { type: "object", properties: { mode: { type: "string", description: "The work mode to set", enum: ["AUTO", "SMALL_ROOM", "SPOT", "EDGE", "NO_SWEEP"], }, }, required: ["mode"], }, }, - src/server.ts:639-649 (handler)The handler logic in the CallToolRequest switch statement: ensures RoboVac is initialized, calls setWorkMode on the instance with the provided mode, and returns a success message.
case "robovac_set_work_mode": this.ensureRoboVacInitialized(); await this.robovac!.setWorkMode(args?.mode as WorkMode); return { content: [ { type: "text", text: `Work mode set to: ${args?.mode}`, }, ], };