browser-memory
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| EVAL_INBOX | No | The signed-in Gmail address the errands mail to; required only for `npm run eval -- --side-effects`. | |
| BROWSER_CDP_URL | No | Chrome's debugging endpoint, used for tab ownership and asking the user. | http://127.0.0.1:9222 |
| BROWSER_WORK_DIR | No | Directory for screenshots, downloads, and snapshots. | work/ beside the checkout |
| BROWSER_MEMORY_DIR | No | Directory where lessons, API maps and logs live. | memory/ inside the package |
| PLAYWRIGHT_MCP_URL | No | The URL of the upstream Playwright MCP server. | http://localhost:8931/mcp |
| BROWSER_MEMORY_WITHOUT | No | Comma-separated layers to switch off, for ablation runs. | |
| PLAYWRIGHT_MCP_OUTPUT_DIR | No | Where the upstream Playwright MCP server writes snapshots; must match its --output-dir. | output/ inside BROWSER_WORK_DIR |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This is a real browser holding the user's live, logged-in sessions — the same profile they use themselves. That is the whole premise: no per-service credentials, no connectors to authorize, no separate auth to keep alive.
So every action goes through it. To send mail, open the mail site, compose, attach with browser_file_upload, and send. To read a calendar, open the calendar. To pay an invoice, open the billing page. Do not reach for a service API, a connector, a CLI or an environment token — if a human would do it in a browser tab, do it in a browser tab.
Calling a site's own internal endpoints with browser_evaluate and fetch, from a page already on that site, IS the browser: it rides the same session cookies and is usually far faster than driving the UI. domain_interface lists the endpoints each site has been observed calling.
Sessions here persist and accumulate. Earlier agents leave behind lessons, procedures and a map of each site's API; you are expected to read what is there and add to it.
A sign-in is not automatically a dead end. Check browser_credentials_list first: if the site is there, browser_credentials_fill types the stored username and password into the fields you name and you carry on alone. If a googleAccount is stored, use the "Sign in with Google" button and pick that account at the chooser rather than typing anything. Only when nothing is stored do you ask — and then save what you are given with browser_credentials_save, so the next agent is not asked the same question. Never repeat a password back in your reply.
A CAPTCHA is worth one honest attempt before you escalate. You can see the page, so read the challenge and act on it: tick the box, pick the tiles it names, type the characters. Two failures is the limit — past that you are training their model against yourself, and it is time to ask.
What is genuinely not yours: a card number, a two-factor code you have no way to obtain, and a form field whose correct value is not knowable from the page. Call browser_ask_user the moment you recognise one, before trying and failing. It raises the tab, reaches the user wherever they are — their client if it can prompt, otherwise their chat app — and returns by itself once they have acted, without them replying. Stopping to ask costs one call; guessing at someone else's form is not recoverable.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| domain_briefA | Call this BEFORE working on any website, with the URL you are about to visit. Returns, in full, what previous agents learned there — API shortcuts that skip the UI, the exact steps and addresses that already worked, known failures and their fixes. Everything you need is in the answer; nothing has to be opened separately. Passing your goal ranks it against that. Skipping this means rediscovering, slowly, what is already known. |
| domain_openA | Fetch the complete text — including runnable snippets — for lessons you picked out of domain_brief. Open only what you will act on; that is what keeps this cheap. An id ending |
| domain_unstickA | Call this the moment something on a site does not behave as expected — an unexpected redirect, an error banner, an element that will not appear, a request that keeps failing. Describe the symptom exactly as you observe it (paste the error text or URL verbatim if you have one) and this returns fixes earlier agents recorded for that symptom. Try this before you start guessing; the fix is usually already written down. |
| domain_rememberA | Write down something that will save the next agent time on this site. Re-using an existing title overwrites that lesson, so correcting yourself is cheap and duplicates do not pile up. Write for a stranger who has none of your context. Be specific and concrete: real selectors, real endpoints, real error strings. "The dashboard is slow" helps nobody; "GET /api/v1/stats returns the same numbers the dashboard renders, no UI needed" saves ten minutes. Pass url:"*" for a lesson that holds on any site — how SPAs are usually built, where to look first on an unfamiliar dashboard. Those are what make the first visit to an unknown site fast. Credentials are stripped automatically before anything is written, so never paste a token to "make the snippet complete" — write the snippet as it should be run, without secrets. Kinds, most valuable first:
|
| domain_reportA | After acting on a lesson from domain_open or domain_unstick, report the outcome. This is what keeps the memory trustworthy: confirmations raise confidence and refresh the verified date, failures lower it, and two failures demote a lesson to disputed so it stops misleading people. One call, and every later agent benefits. |
| domain_forgetA | Remove a lesson entirely. Prefer domain_report({ outcome: "failed" }) when you are unsure — that preserves the evidence trail. Delete only what is flatly wrong or obsolete. |
| domain_indexA | List every domain with recorded lessons, how many, and how often they have been used. |
| procedure_draftA | Turn an endpoint from this site's observed API into working code you can run, adjust and save. Use it before writing a fetch by hand: the method, the path, the parameter names and the fact that it returns 2xx were all learned from the site's own traffic, so a draft describes something that has already worked rather than something that might. Pass no name to see what is available. What is left for you is the part only you know: what the endpoint is for, and which field of the response actually answers the question. |
| procedure_saveA | Promote a task you have just completed into a callable tool, so the next agent invokes it instead of working it out again. This is the highest-leverage thing you can leave behind: a lesson still has to be read and applied, a procedure is simply called. Save one only when you have actually run the code and seen it work in this session. Parameterize it. If you fetched metrics for one VPS over one time window, the procedure takes (vpsId, hours) — hardcoding the values you happened to use is the single most common way this goes wrong and produces a tool nobody can reuse. The code runs in the page via evaluate, with your parameters available as |
| procedure_listA | List saved procedures, including unverified and broken ones that are not advertised as tools. Use it to see what automation a site already has, or to find something worth repairing. |
| procedure_deleteA | Delete a procedure that is wrong or obsolete. A broken one is often worth fixing with procedure_save instead. |
| domain_interfaceA | The operations a site has accumulated: proven procedures with their signatures, shortcuts not yet turned into operations, how access works, and what is known not to work. Read this when you are about to do real work on a site that has been visited before — it is shorter than the lessons and tells you what is callable right now. |
| domain_curateA | Run this when a site has built up enough knowledge to be worth tidying — domain_brief will say so. It returns candidates found mechanically: lessons that overlap, values hardcoded into procedures that should be parameters, knowledge that is really about the web rather than this site, entries nobody has used, and procedures that are broken or never proven. It changes nothing. Every item is a candidate and the judgement is yours: whether two lessons really say the same thing, whether a pattern generalizes, whether a literal would differ on the next call. Apply what you agree with using domain_remember, domain_forget and procedure_save, then call this again with done: true to record that the pass happened. The goal is a site that converges on a small set of proven operations, not an archive that grows forever. Every entry costs ranking quality and tokens on every single brief. |
| browser_ask_userA | Hand control to the user for a step that is not yours to do, then carry on when they have done it. Use it the moment you recognise one, rather than after failing:
This brings your tab to the front, sends the user a message on their phone with a screenshot of the page — and, on the company server, a one-time link that shows them just your tab — and then waits. It returns as soon as the page shows they are done or they press "done" on the phone — they do not have to come back and tell you. If the message cannot be sent — or, on the company server, hq cannot make the phone link — it fails at once and says why; then fix that or tell the user yourself, in your reply, what is needed. Give If this call is interrupted (a message arrived while it waited) after a phone link went out, the request is NOT cancelled: the link stays live, and when the user finishes, declines or it expires you get a message saying so. Do not call it again for the same step; answer the message and wait for that one. If no link went out, take a snapshot and ask again if it is still needed. Say what you need in plain language, as if to someone who cannot see your reasoning. |
| browser_credentials_listA | List the sites this browser has stored credentials for, with usernames but never passwords. Check this before treating a login page as a dead end — the account may already be here, in which case |
| browser_credentials_saveA | Store a username, password, or preferred Google account for a site, so the next login needs nobody. Call this right after the user gives you credentials, before you use them — if the login then fails you have still saved them the retyping. Saving only a Stored at mode 600 outside the repository. Passwords are never read back out; they can only be typed into a page by |
| browser_credentials_fillA | Fill the username and password fields on the current page from the store, without the password passing through you. Take a snapshot first and pass the refs of the fields you can see. Fill both in one call where the page shows both; on a two-step form (email, then Next, then password) call it twice with whichever field is on screen. This does not submit — click the button yourself so you can read what the page does next. If nothing is stored for the site this says so, and the next move is |
| browser_credentials_forgetA | Remove everything stored for a site. Use it when the user says the password changed and they do not want to give the new one yet, or when a login has repeatedly failed with what is stored — a stale password that keeps getting typed can lock the account. |
| browser_unavailableB | The browser server at http://localhost:8931/mcp is not reachable (fetch failed). Browser tools are offline; domain memory still works. Check: systemctl --user status playwright-mcp.service |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 19 tools
Each tool has a stated trigger moment (brief before visiting, unstick when stuck, report after acting, curate when knowledge piles up), which keeps most boundaries clear. The weak spot is the cluster of read/discovery tools — domain_brief, domain_interface, domain_index and procedure_list all answer 'what is already known here?' — and domain_brief's claim that 'nothing has to be opened separately' sits awkwardly beside domain_open's existence.
Names are uniformly snake_case and organized by namespace prefix (domain_*, procedure_*, browser_credentials_*), so grouping is obvious at a glance. A few entries break the verb pattern (domain_brief, domain_interface, browser_unavailable) but never in a way that makes the subject unclear.
Nineteen tools is on the heavy side, but the surface decomposes cleanly into three CRUD families (lessons, procedures, credentials) plus a handoff tool, and each member does distinct work. The only clear filler is browser_unavailable, which is a diagnostic message rendered as a tool.
Lesson and credential lifecycles are complete (create/read/update/report/delete plus tidy), and procedures can be drafted, saved, listed and deleted, with save doubling as repair. Gaps remain: no domain-level removal, no export/import or backup of accumulated memory, and despite the 'browser-memory' name there are no actual page-interaction tools — a snapshot/click/navigate surface is assumed to live in a separate server, which leaves dead ends if that server is down.