Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navigate history tool for AI Chat #44366

Open
petemill opened this issue Mar 3, 2025 · 0 comments
Open

Navigate history tool for AI Chat #44366

petemill opened this issue Mar 3, 2025 · 0 comments
Assignees

Comments

@petemill
Copy link
Member

petemill commented Mar 3, 2025

The LLM can use this tool to navigate backwards or forwards on the active Tab that is associated with the current Conversation. This is useful for the times where the LLM needs to perform a task on a site and then go back to perform more tasks or view the result of the task.

std::string_view NavigateHistoryTool::name() const {
  return "web_page_history_navigator";
}

std::string_view NavigateHistoryTool::description() const {
  return "Go back or forward a single entry in the current browser Tab's "
         "history. This is preferred over using a keyboard shortcut for the "
         "action as there are platform differences with keyboard shortcuts. "
         "It's important to take a screenshot after navigating to verify that "
         "previous clicks didn't create an unknown amount of history entries.";
}

std::optional<std::string> NavigateHistoryTool::GetInputSchemaJson() const {
  return R"({
        "type": "object",
        "properties": {
          "back": {
            "type": "boolean",
            "description": "True to navigate back one entry in the history, false to navigate forward one entry"
          }
        }
      })";
}
@petemill petemill self-assigned this Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant