Skip to main content

Search local browser history files using the LLM tool.

Project description

LLM Tools Browser History

A tool for the llm command line that allows searching local browser history files.

The tool currently supports Chrome, Firefox, and Safari browser histories.

Usage

Install for use with llm:

# install the plugin:
llm install llm-tools-browser-history

# see available plugins:
llm plugins

...
  {
    "name": "llm-tools-browser-history",
    "hooks": [
      "register_tools"
    ],
    "version": "0.1.0"
  },
...

Examples:

# Search for pages mentioning yosemite in title or URL
llm -T llm_time -T BrowserHistory "what pages about yosemite did I look up recently?"

# Limit to Firefox and Safari sources
llm -T llm_time -T 'BrowserHistory(["firefox","safari"])' "what pages about yosemite did I look up recently?"

llm -T BrowserHistory "show a table of how much I used each browser over the past year by month"

Security and Privacy

Warning: This tool has read-access to your entire browser history. You risk sending this highly sensitive personal data to third-party services (like OpenAI).

See the lethal trifecta article for more information about the risks of using tools like this with LLMs.

To mitigate the risks of data leakage:

  • Only runs queries against a copy of the target browser's history database (so any malicious modification has no effect).
  • Limits the number of results to no more than 100 records per tool use.
  • Does not return the entire browser history record. This tool will return a subset of fields (URL, title, visit date). Query parameters are stripped from URLs and timestamps only include the date (not the time).

Dev setup

make setup
make test

pip install -e .

llm -T llm_time -T BrowserHistory --td "what pages about yosemite did I look up recently?"

ADRs

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llm_tools_browser_history-0.1.1.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llm_tools_browser_history-0.1.1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file llm_tools_browser_history-0.1.1.tar.gz.

File metadata

File hashes

Hashes for llm_tools_browser_history-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f6c3c5c45a4d87c732f58006ea61c337ca2880f49b5a86b1d4d1b92a2547bae9
MD5 d6fc98ba1423b2a67c6f80dcfae1949e
BLAKE2b-256 0cf9a2f457a38abcbe599b109aff16e1902639c9052bacfca951022cf0c9355e

See more details on using hashes here.

File details

Details for the file llm_tools_browser_history-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_tools_browser_history-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a9a20795a91da3d6504f5885c4f1798090d835b408e54c97b68af9b800efa56b
MD5 01ac7d35cfc6742a9c730ed8fd71393f
BLAKE2b-256 4dc0bcee74b45f908d2e50bd83d6db4537c360e7b33ea6a24a12ac879c1f6934

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page