Improve error handling in navigate_page_history tool
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.
If you guys assign this issue I can work on this issue
In what scenarios, with what prompts would you use this?