get_work_state
Check the current cleaning or charging status of your Ecovacs robot vacuum to monitor its activity and progress.
Instructions
Query robot working status
Args: nickname: Robot nickname, used to find device
Returns: Dict: Dictionary containing robot working status
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nickname | Yes | Robot nickname, used to find device |
Implementation Reference
- ecovacs_mcp/robot_mcp_stdio.py:91-104 (handler)The handler function for the 'get_work_state' tool. It is decorated with @mcp.tool() for registration and executes the API call to retrieve the robot's working state using the 'GetWorkState' command.@mcp.tool() async def get_work_state( nickname: str = Field(description="Robot nickname, used to find device") ) -> dict: """ Query robot working status Args: nickname: Robot nickname, used to find device Returns: Dict: Dictionary containing robot working status """ return await call_api(ENDPOINT_ROBOT_CTL, {"nickName": nickname, "cmd": "GetWorkState", "act": ""})