fix: MCP server ignore_NotFoundError option not working

- Fixed TapByOCR and TapByCV tools to properly handle ignore_NotFoundError option
- Added option parameters to all MCP tool request structures
- Fixed ConvertActionToCallToolRequest methods to extract action options
- Added extractActionOptionsToArguments helper function for consistent option handling
- Extended fix to all MCP tools: SwipeToTapApp, SwipeToTapText, SwipeToTapTexts, TapXY, TapAbsXY
- Added comprehensive tests for option parameter handling
- Updated test expectations to match actual registered tools

This ensures that when ignore_NotFoundError is set to true, OCR/CV operations
will return nil instead of throwing errors when target elements are not found,
allowing tests to continue execution as expected.
This commit is contained in:
lilong.129
2025-05-26 22:02:01 +08:00
parent 9a5e0849de
commit df65f9a828
4 changed files with 375 additions and 46 deletions

View File

@@ -1 +1 @@
v5.0.0-beta-2505262125
v5.0.0-beta-2505262202