Skip to content

Improve error handling in navigate_page_history tool #259

@mithun50

Description

@mithun50

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions