The navigate_page_history tool in src/tools/pages.ts currently suppresses specific errors when a navigation action (back or forward) fails. Instead of providing context about why the navigation failed (e.g., no page in history), it returns a generic message: Unable to navigate {back|forward} in currently selected page..
This should be improved to check the navigation history before attempting the action. If the navigation is not possible, a more informative error message should be returned to the user, such as "Cannot go back, no previous page in history." This will improve the tool's usability and provide better feedback.
The navigate_page_history tool in src/tools/pages.ts currently suppresses specific errors when a navigation action (back or forward) fails. Instead of providing context about why the navigation failed (e.g., no page in history), it returns a generic message: Unable to navigate {back|forward} in currently selected page..
This should be improved to check the navigation history before attempting the action. If the navigation is not possible, a more informative error message should be returned to the user, such as "Cannot go back, no previous page in history." This will improve the tool's usability and provide better feedback.