-
Notifications
You must be signed in to change notification settings - Fork 998
Description
[03/11/26 12:33:17] ERROR Error calling tool 'click_input' tool_manager.py:226
╭───────────────── Traceback (most recent call last) ─────────────────╮
│ C:\Users\skadmin\anaconda3\envs\ufo\lib\site-packages\fastmcp\tools │
│ \tool_manager.py:222 in call_tool │
│ │
│ 219 │ │ │ │ raise NotFoundError(f"Tool {key!r} not found" │
│ 220 │ │ │ │
│ 221 │ │ │ try: │
│ ❱ 222 │ │ │ │ return await tool.run(arguments) │
│ 223 │ │ │ │
│ 224 │ │ │ # raise ToolErrors as-is │
│ 225 │ │ │ except ToolError as e: │
│ │
│ C:\Users\skadmin\anaconda3\envs\ufo\lib\site-packages\fastmcp\tools │
│ \tool.py:295 in run │
│ │
│ 292 │ │ │ arguments[context_kwarg] = get_context() │
│ 293 │ │ │
│ 294 │ │ type_adapter = get_cached_typeadapter(self.fn) │
│ ❱ 295 │ │ result = type_adapter.validate_python(arguments) │
│ 296 │ │ │
│ 297 │ │ if inspect.isawaitable(result): │
│ 298 │ │ │ result = await result │
│ │
│ C:\Users\skadmin\anaconda3\envs\ufo\lib\site-packages\pydantic\type │
│ _adapter.py:421 in validate_python │
│ │
│ 418 │ │ │ │ code='validate-by-alias-and-name-false', │
│ 419 │ │ │ ) │
│ 420 │ │ │
│ ❱ 421 │ │ return self.validator.validate_python( │
│ 422 │ │ │ object, │
│ 423 │ │ │ strict=strict, │
│ 424 │ │ │ from_attributes=from_attributes, │
│ │
│ C:\Users\skadmin\UFO\ufo\client\mcp\local_servers\ui_mcp_server.py: │
│ 310 in click_input │
│ │
│ 307 │ │ Click on a UI control element using the mouse. All ty │
│ supported. │
│ 308 │ │ """ │
│ 309 │ │ │
│ ❱ 310 │ │ control_verified = _verify_id(id, name, ui_state.cont │
│ 311 │ │ │
│ 312 │ │ action = ActionCommandInfo( │
│ 313 │ │ │ function="click_input", │
│ │
│ C:\Users\skadmin\UFO\ufo\client\mcp\local_servers\ui_mcp_server.py: │
│ 182 in _verify_id │
│ │
│ 179 │ control = control_dict.get(id) │
│ 180 │ │
│ 181 │ if not control: │
│ ❱ 182 │ │ raise ToolError( │
│ 183 │ │ │ f"Control with id '{id}' not found. Available con │
│ {list(control_dict.keys())}" │
│ 184 │ │ ) │
│ 185 │
╰─────────────────────────────────────────────────────────────────────╯
ToolError: Control with id '4' not found. Available control ids: ['1',
'2', '3']