1.1 KiB
1.1 KiB
Bookmarks API for Scripting and AI
An API add-on for Firefox to allow agentic and script-based management of user bookmarks.
The published product is the add-on in extension/. Issue a secret in Manage clients, store it with your secrets, and keep Firefox open so those tools can talk to this add-on.
This is not a bookmark sync engine, and it is not a Mozilla product.
Setup
- Load the add-on (temporary via
about:debugging, or a signed.xpi— docs/signing.md). - Toolbar → Manage clients → generate a secret → store it with your secrets.
- To let scripts call in, register the native host once (
tools/install-native-host.ps1on this workstation).
Authenticated calls use Authorization: Bearer <secret> on http://127.0.0.1:17634. Method list for people working in this repo: AGENTS.md.
Security
- Binds 127.0.0.1 only. Browser
Originheaders are rejected. - Client hashes live in the add-on’s storage. The host asks the add-on whether a token is valid.
- Only
bookmarks.*(plusmeta.*). No history, cookies, tabs, oronMessageExternal.
License
MIT.