TeaseDocs
Tease Browser

Drive Tease Browser with your AI

Connect a local AI agent to Tease Browser over its loopback control API and automate work on your own accounts.

Tease Browser can expose a local control API so an AI agent on the same computer — Claude Desktop, Claude Code, or your own script — drives the browser the way you would: open a tab, click, type, upload media, read the page, take a screenshot. You wrap your own automation around it, including anything on a schedule, the way a local automation driver works.

It comes with any paid plan and it is local only. The agent must run on the same computer as Tease Browser — nothing reaches it from the cloud or another machine, by design.

Turn it on

Have a paid plan

Browser control comes with any paid plan, on a current Tease Browser. You will see the Browser control button in the tab bar.

Turn it on

Open Browser control and press Turn on. The app opens the control API and writes its address and access token to a file. Stop on the same card ends the agent's access at once and removes the file. Your choice is kept across launches.

~/Library/Application Support/tease-browser/mcp-endpoint.json
%APPDATA%\tease-browser\mcp-endpoint.json
~/.config/tease-browser/mcp-endpoint.json

The file holds a URL on 127.0.0.1 and a bearer token:

{ "url": "http://127.0.0.1:52341/mcp", "token": "x1d…base64url…" }

The port and the token are new every time control turns on. The file is readable only by your user account.

How it is kept safe

  • Loopback only. The API binds to 127.0.0.1 on a random port. Nothing off the machine can reach it.
  • A token new each time control turns on. A relaunch keeps the port and the token while control stays on. A web page cannot read the token file, and every request needs the token.
  • No reach from a page. Any request that carries a browser Origin is refused, so a site you are visiting cannot drive the browser.
  • It asks first. The first time your agent touches an account, Tease Browser asks you on a card: View only, Allow actions or Don't allow. The answer lasts until the browser closes or you press Stop. Banking and payouts stay yours whatever you answer.
  • Your Tease panel and Studio are view only. Asked on the same card, your agent may look at the panel or Studio screen you have open (tabs panel and studio: page.read_text, page.wait_for, page.screenshot). It never clicks, types or moves it (panel_view_only); screens with keys, sign-in, payouts or payments, or with a window open, stay yours (panel_screen_needs_person). A role that may not copy out is refused its text, and one that may not record its picture, without a question (browser_copy_out_forbidden).
  • A member who may not copy out has no agent that does. With copying forbidden, page.read_text, page.read_html and page.query answer browser_copy_out_forbidden, as does any selector with [, : or a backslash, and tab titles and alert texts are withheld; with screen recording forbidden, so does page.screenshot. Clicking and typing still work; the organization's owner is never bound.
  • Interaction only. Your agent gets the interaction verbs (click, type, read, upload…). Raw DevTools (page.eval, cdp.send) stays owner/admin-only and is never handed to your agent.
  • Everything it does is written down. agent-journal.jsonl, next to mcp-endpoint.json, keeps one line per command: the time, the verb, the tab, the site's host and the outcome — never what it typed, cookies or a proxy.
  • Your pooled accounts are protected. An account that rides Tease's managed proxy pool cannot be driven; only an account on its own proxy, or a free tab, is drivable.
  • Your files stay yours. page.upload attaches only what you put in the Tease Agent Files folder in your home folder (created when control turns on); any other path is refused with browser_agent_upload_outside_folder.
  • Web pages only. tab.open and tab.navigate send an account's tab only to its own platform's site and a free tab to any https page; everything else (http:, file:, chrome:, devtools:, a foreign site in an account's tab) is refused with browser_agent_url_forbidden or browser_command_invalid, so a page cannot steer the agent into a local file, a privileged page or off the account's site.

Connect your AI agent

Tease Browser works with any MCP client — Claude Desktop, Claude Code, Cline, or your own script. The port and token change every time control turns on, so you point your client at a small bridge the browser ships with: it reads mcp-endpoint.json on each request and forwards to the loopback API, so your client config never changes.

In Tease Browser open Browser control (the agent icon in the toolbar). It shows the bridge path and a copy-ready server config. Point any MCP client at it — this is the universal, tool-agnostic form:

{
  "mcpServers": {
    "tease-browser": { "command": "node", "args": ["<bridge path shown on the Browser control screen>"] }
  }
}

Needs Node.js on your machine (the bridge runs under node). The bridge path is on the Browser control screen, with a copy button, so you never type it by hand.

claude mcp add tease-browser --transport stdio -- node "<bridge path>"

Add the mcpServers block above to claude_desktop_config.json.

Register a stdio server that runs node "<bridge path>". It speaks plain MCP over stdin/stdout (initialize, tools/list, tools/call), so any compliant client drives it.

Now ask your agent to work in Tease Browser — it discovers the verbs itself through tools/list.

Talking to the API directly? The browser also writes the raw { url, token } to mcp-endpoint.json (its path is on the Browser control screen), so a client that speaks HTTP MCP can skip the bridge — see the script below. A relaunch keeps the port and token while control stays on; they change when control is turned off and on, or when the port is taken. The bridge re-reads them for you.

What your agent can do

Each is one MCP tool. Every page verb takes a tabId (from tab.list or tab.open) and a CSS selector. page.click, page.hover, page.type, page.read_text, page.read_html, page.query and page.wait_for also take frame, part of a frame's address, to act inside that frame of the page (e.g. an app embedded from another site).

VerbDoes
tab.list / tab.open / tab.navigate / tab.closeManage tabs; open an account or a URL. tab.navigate answers where the tab stands, finalUrl (no query) and title, or the load's cause (ERR_*)
tab.reloadReload a tab where it stands; hard: true bypasses the cache; answers as tab.navigate
tab.showBring a tab forward in its window, as a click on it does
page.clickTrusted click on one of: the first visible, uncovered element a selector matches; the visible text, words on a button, link or other control first (e.g. text: "Log in" for a button with no stable selector); or a point x, y in CSS pixels of the view (the page's, not with frame; over a frame: browser_point_in_frame, use selector or text with frame). Answers clicked: the tag, role and text of what was clicked
page.hoverMove the mouse onto a target, as page.click takes it, without clicking (a menu that opens on hover; a collapsed menu such as Ads Manager's opens on it — hover, then click the item). Answers hovered: tag, role and text of what is under the mouse
page.typeType into a field (the first visible match) key by key, ~0.2 s a character; clear:true replaces its contents
page.pastePaste long ready text (caption, bio) into a field at once, the clipboard kept; refused in sign-in, password, code and live chat fields — use page.type there
page.selectPick an option of a <select> by its value or its visible label; a miss lists the options
page.dialogAnswer the page's alert, confirm or prompt that a click or key opened (its answer names it): accept: true is OK
page.pressPress a key or a combo (Escape, Enter, ArrowDown, control+a…); Enter in a form field submits the form
page.uploadAttach local files to a file input (post media); only files inside the Tease Agent Files folder in your home folder
page.read_text / page.read_htmlRead an element's text or markup; without a selector, the whole page's. page.read_text with main: true reads the main content: an open dialog first, then <main> as it stands, else the page without its own header, footer (and its list of languages), navigation and side bars as the page marks them (nav, header, footer, aside or their roles); an article's own header stays. On a page with no <main>, a bar or menu of bare divs (Ads Manager's) stays in: read its table or panel with selector. An app older than this key ignores it and reads the whole page
page.queryAn element's state: found, count, visible, value, disabled, checked, attributes; an image's image (naturalWidth 0 once complete with hasSource: it did not load; without a source it has not asked for one yet), a field's or a form's validity (valid, the browser's message, the form's first invalid field, noValidate when the form submits without the check, and unchecked: custom fields whose validity the page keeps to itself); all:true adds matches, each match's state by index, 50 at a time: more says there are others, from: next reads on
page.scrollScroll to an element, to top/bottom, or by pixels to reach lazy-loaded content
page.wait_forWait for one of: an element (selector), words on the page (text), words gone (textGone), or state load / networkidle (loaded, no request for 0.5 s, counted from the wait's start; timeout at least 200 ms for load, 500 ms for networkidle; not with frame; while a request of the tab stays open (Ads Manager polls) it never goes idle: wait for its text); timeout at most 30000 ms; on the panel and Studio only selector; found: false if it never comes
page.screenshotCapture the tab as a PNG, also a tab behind the screen; clip (a CSS selector in view — one larger than the view as far as it shows —, or {x, y, width, height} in CSS pixels) and scale (0–1]. The answer's content holds an image part (data base64, mimeType) beside the text part
page.networkWhy a page does not load: the tab's requests and how each ended (host, path without query, status or ERR_ code, ms); failedOnly keeps the failed ones, since the newer ones. No bodies, headers, cookies or query
page.consoleThe page's console errors and warnings, addresses without query and token-like strings hidden; level keeps one of them
tab.throttleMeasure a page on slow internet, in a social account's tab (Instagram, TikTok…): this tab goes at a Chrome preset network (slow-3g, slow-4g, fast-4g) for 10 minutes (until), or until it closes; load the page in this tab (tab.navigate, tab.reload); its out-of-process frames and workers are not slowed; off ends it sooner
batchUp to 10 commands ({verb, ...its arguments}) in one call, one after another, each behind the same rules as alone; results in order, pictures as image parts. The first refusal stops the rest (browser_batch_stopped) unless stopOnError: false
page.downloads / download.readWhat this tab downloaded (its last 10: id, name, state, bytes), and the text of a completed one up to 2 MB, e.g. a CSV report; the file itself stays in your Downloads
account.login / account.openSign an existing account back in; bring one up. account.open answers ms and phases (ms of each step: server, exit, session, page, tabs), and a network cause such as ERR_TUNNEL_CONNECTION_FAILED when the account's proxy or site named one; wait: true holds the answer until the account is up (up to 180 s), except for an open Tease Browser started itself (a restore at start, the Studio's): before the account is ready that one answers browser_account_still_opening with its phase at once; between its tries it may not show as opening at all, so read profile.status before a second account.open
profile.list / profile.statusThe accounts this browser can drive (state: "opening" with its phase while one opens), and a new account's connect while it goes (state: "connecting", by connectAttemptId), and how the last one ended (connected with its accountId, or closed with a reason)
profile.egressWhere an open account goes out right now, through its own proxy: ip, country, ms, or browser_egress_failed with the network's cause (ERR_TUNNEL_CONNECTION_FAILED…). Reads only; the route stays yours to change
profile.create / profile.cancelConnect a new account on your own proxy, or with ownIp: true from this computer's IP (cam sites, TikTok, Instagram); cancel a connect you started (e.g. after a refused sign-in)
account.request_accessPut the card View only / Allow actions / Don't allow before you for one account and answer at once: agent: "asking" while the card waits, or the answer given. profile.list and profile.status carry it in each account's profile (profiles[].agent, profile.agent by accountId; a connect in progress has none): act, view, no, asking, or null when nobody was asked

The agent acts as you, on whatever account tab you drive. Treat it like letting a tool post and message from your account: review what you ask it to automate.

A first script

You can also talk to the API directly. Read the endpoint file, then send MCP JSON-RPC over HTTP.

import json, os, pathlib, urllib.request

app = pathlib.Path.home() / "Library/Application Support/tease-browser/mcp-endpoint.json"  # macOS
ep = json.loads(app.read_text())

def call(method, params=None):
    body = json.dumps({"jsonrpc": "2.0", "id": 1, "method": method, "params": params or {}}).encode()
    req = urllib.request.Request(ep["url"], body,
        {"content-type": "application/json", "authorization": f"Bearer {ep['token']}"})
    return json.load(urllib.request.urlopen(req))

call("initialize", {})
print(call("tools/list"))                                             # every verb
tab = call("tools/call", {"name": "tab.open", "arguments": {"accountId": "pa_1"}})
# every answer's JSON is its "text" part; a screenshot adds an "image" part
answer = json.loads(next(p["text"] for p in tab["result"]["content"] if p["type"] == "text"))
# … your own scheduler can loop here, calling tools/call on its own clock …
import { readFileSync } from 'node:fs';
import { homedir } from 'node:os';
import { join } from 'node:path';

const ep = JSON.parse(readFileSync(
  join(homedir(), 'Library/Application Support/tease-browser/mcp-endpoint.json'), 'utf8')); // macOS

const call = async (method, params = {}) => (await fetch(ep.url, {
  method: 'POST',
  headers: { 'content-type': 'application/json', authorization: `Bearer ${ep.token}` },
  body: JSON.stringify({ jsonrpc: '2.0', id: 1, method, params }),
})).json();

await call('initialize');
console.log(await call('tools/list'));
await call('tools/call', { name: 'tab.open', arguments: { accountId: 'pa_1' } });

Scheduling lives in your script or agent — run it on your own timer. Tease Browser does not run a scheduler for you.

When something is off

You seeWhyDo
No mcp-endpoint.json / File not found: … / Browser control is offControl is off, or the app is not runningLaunch Tease Browser and press Turn on in Browser control
401 unauthorizedThe token changed (control was turned off and on again)Re-read the file; the bridge does this itself
403 forbidden originThe request carried a browser Origin headerCall from a native client, not a web page
browser_pool_proxy_forbiddenThe account rides Tease's managed proxy poolDrive an account on its own proxy, or a free tab
browser_proxy_egress_unknownTease has not yet said whether the account rides your own proxyUpdate Tease Browser, reopen the account, and try again
browser_agent_account_not_allowedNobody answered the card within two minutes (consent: "unanswered"), or you answered Don't allow (consent: "refused")Unanswered: try again and answer the card in Tease Browser. Don't allow is kept: press Stop and Turn on to be asked again
browser_agent_account_view_onlyYou answered View onlyPress Stop and Turn on, then answer Allow actions
browser_option_not_foundpage.select found no enabled option by that value or labelPick one of the options the refusal lists
browser_account_still_openingaccount.open took longer than 45 s (180 s with wait: true, or for tab.open of an account an agent's or your own open is bringing up); the account keeps opening, phase names the step it is in; at once when Tease Browser opens the account itself (restoring it at start)Call account.open with wait: true; for an account Tease Browser is restoring, follow profile.status until state is no longer opening, then act
browser_frame_not_foundNo frame of the page has that frame in its addressPick one of the frames the refusal lists
browser_dialog_openThe page shows an alert, confirm or prompt and runs no script until it is answeredpage.dialog with accept
browser_agent_url_forbiddenA foreign site in an account's tab, or http:Stay on the account's platform; open other sites in a free tab, over https
browser_element_not_foundThe selector matched nothingCheck the selector, or page.wait_for it first
browser_element_not_visibleThe element is on the page but has no box (e.g. a submit inside a hidden block)Click what a person sees instead, or press Enter in the form's field
browser_element_not_focusedpage.type into a frame of another site, or page.paste: the click did not move the focus into the field within a second, so nothing was typed or pastedpage.wait_for the field, then try again
browser_element_coveredAnother element (a banner, a dialog) sits on top of it; coveredBy names it (tag, #id, .class)Close what covers it, then retry; a field's own label can be clicked to focus the field. With hint: "hover_first" the words are cut off (a collapsed menu): page.hover them, then click; words a hover does not bring in are clicked by x, y
browser_tab_not_foundNo open tab has that tabIdTake a tabId from tab.list
browser_tab_loadingThe tab slept and its page is still loading after 60 sCall again in a while
account_tab_open_failedThe tab's page did not load; cause names the load's code (ERR_…). A slept tab stays in tab.listCheck the account's proxy, then call again
account_session_pausedThe tab's account is paused (its session is being renewed or needs the person)Wait for profile.status, then call again
browser_throttle_socials_onlytab.throttle outside a social account's tabMeasure in a social account's tab
browser_throttle_failedThe tab could not be slowed: it holds no debugger (it is on a sign-in page of another site, such as Google's) or its page is gone; nothing is slowedCall again once the tab is back on the platform's page
browser_account_unknownThis browser knows no account with that accountIdTake an accountId from profile.list
browser_command_invalidAn argument is missing or malformed; field names it (e.g. proxy.port)Fix that argument
browser_wait_timeout_too_longpage.wait_for timeout is over the bound; max names it (30000 ms)Wait at most max, again if needed
browser_tab_not_shownpage.screenshot of a sign-in window (login:…) while an account is shown, or of the panel or Studio off screentab.show it, then capture again
browser_element_out_of_viewpage.screenshot clip selector that fits the view but is not wholly in itpage.scroll to it, then capture again
browser_clip_out_of_viewpage.screenshot clip box that lies wholly outside the viewGive a box inside the view, or page.scroll first
browser_agent_too_many_parallelFour commands are already runningWait for one to finish, then retry
browser_agent_rate_limitedMore than a burst of 60 commands, then 10 a secondSlow your script down, then retry

Next: Install Tease Browser.

On this page