Skip to content
ContentsConnect an agent

Connect an agent

An agent opens its own window in a signed-in identity and works there the way a person would: it reads the page and presses buttons. It never gets the cookies or the password, and it asks a person before anything that can't be undone.

Before you start

Agents come with Starter, Pro and Business. The Free plan has none. Only admins add agents and change what they may do.

  1. Sign in to the website once, yourself. Add the identity and sign in to the website in your own window. Agents work in identities that are already signed in; they never sign in themselves.
  2. Add the agent. In Agents, choose New agent, name it, tick the identities it can drive and choose Add agent.
  3. Copy its key. It's shown once. Put it in your agent's settings or wherever it keeps secrets.
  4. Set its limits. On the agent's page: Can drive or Read only in each identity, what it asks a person about first and who it asks, its browser hours a month and the Drive files it may send.

Keys

A key is jp_live_ followed by 28 letters and numbers. It's shown once, when it's made. After that Joinpane shows only its start, like jp_live_7Hq2…, so you can tell keys apart. Anyone with the key can act as the agent in the identities it may use.

  • Send it as a bearer token on every request, over MCP and the HTTP API alike: Authorization: Bearer jp_live_…
  • It expires in 90 days, unless the admin who made it chose Never. An expired key gets 401 unauthenticated. Admins get an Inbox note a week before it stops working and on the day, unless a newer key outlasts it.
  • Replace a key without stopping a task. On the agent's page, choose New key. The old key turns off 24 hours later, which gives you a day to switch it over; clear Turn off the old key in 24 hours to keep both.
  • Turn off a key to stop it working at once. A task using it stops at its next step.
  • Deleting an agent turns off all its keys, closes its windows, cancels the questions it was waiting on, and deletes its jobs and its webhook.

Connect over MCP

Joinpane is an MCP server at https://mcp.joinpane.com/<workspace>, where <workspace> is your workspace's address, the part after joinpane.com/. Agents in Joinpane shows it with yours filled in. The server speaks Streamable HTTP and keeps no session: every request carries the key.

Paste this into your agent's MCP settings, with your workspace's address and your key.

Clients that ask for a transport want Streamable HTTP, sometimes written "type": "http". In Claude Code, one command adds the server:

  • A key works only at its own workspace's address. At another, the server answers 403 and names the right one.
  • It supports MCP 2025-11-25, 2025-06-18 and 2025-03-26. Answers are JSON. The server has nothing to send unasked, so a GET to its address answers 405.
  • When it connects, your agent gets instructions on how to work: list identities, open a window, read the page, act by ref, wait for a person when a press asks first, and wait for events and claim its jobs.
  • A tool that fails says why in its result, marked as an error, in a sentence your agent can act on: “All 5 windows in Studio uploads are open. Try again when one closes.”

MCP tools

The page's buttons, links and fields each carry a ref, like e12, that the tools act on. Use refs from the latest answer: every tool that reads the page hands out new ones.

list_identities
The identities this agent may use. Returns identities: each one's name, website, access and status.No arguments.
open_window
Opens the agent's own window in an identity, already signed in, or gives back the one it has there. Returns window: its id, identity, url, title and access.
  • identitystring, requiredThe identity's name.
  • anotherbooleanOpen one more window there, up to its Windows at once. Default false.
list_windows
The agent's open windows. Returns windows, as open_window describes each.No arguments.
read_page
Reads the page in the window's current tab. Returns text: the page's title and address, its tabs, its elements by ref, then its text. And the screenshot, as an image.
  • windowstring, requiredThe window id from open_window.
  • screenshotbooleanInclude a screenshot. Default true.
navigate
Opens an address in the current tab. Read only: on the identity's website, never an address that signs out or changes something. Returns the page, as for read_page.
  • windowstring, requiredThe window id from open_window.
  • urlstring, requiredThe address.
click
Presses an element. Presses that need a person's yes ask first and wait up to 20 seconds. Returns the page, as for read_page. Or Status: waiting with the question and its id, or Status: declined.
  • windowstring, requiredThe window id from open_window.
  • refstring, requiredAn element's ref, like e12.
  • approvalstringAn approved question's id.
type
Types into a field. Returns the page, without a screenshot.
  • windowstring, requiredThe window id from open_window.
  • refstring, requiredThe field's ref.
  • textstring, requiredWhat to type.
  • clearbooleanReplace the field's text. Default true.
  • submitbooleanPress Enter afterwards. Default false. Asks a person first when the form's button would.
  • approvalstringAn approved question's id.
press_key
Presses one key. Returns the page, without a screenshot.
  • windowstring, requiredThe window id from open_window.
  • keystring, requiredA key name, like Enter or Escape. Enter and Space ask a person first when a click on what's focused would.
  • approvalstringAn approved question's id.
scroll
Scrolls by most of a screen. Returns the page, as for read_page.
  • windowstring, requiredThe window id from open_window.
  • directionstringdown or up. Default down.
go_back
Goes back a page in the current tab. Returns the page, as for read_page.
  • windowstring, requiredThe window id from open_window.
go_forward
Goes forward a page in the current tab, after go_back. Returns the page, as for read_page.
  • windowstring, requiredThe window id from open_window.
switch_tab
Makes another tab the current one. Returns the page, as for read_page.
  • windowstring, requiredThe window id from open_window.
  • indexinteger, requiredThe tab's index from read_page.
list_drive_files
The Drive files the agent may send to websites. Returns files: each one's name, size in bytes and mime type.
  • identitystringOnly files from this identity, by name or id.
upload_file
Sends Drive files to the website's file picker. Returns the page, without a screenshot.
  • windowstring, requiredThe window id from open_window.
  • from_drivestring or string[], requiredFile names from list_drive_files.
  • refstringThe file field or upload button. Default: the page's first file field.
ask_person
Asks the people this agent asks, with a screenshot of the window. The first answer counts. Waits up to 20 seconds. Returns question: its id, status, answer and who answered.
  • windowstring, requiredThe window id from open_window.
  • questionstring, requiredWhat to ask.
  • optionsstring[]The answers to offer, 2 to 6. Default ["Yes", "No"].
  • detailstringWhat you'll do with the answer.
wait_for_answer
Waits up to 20 seconds for an answer. Returns question, as ask_person describes it.
  • question_idstring, requiredThe question's id.
start_task
Names what the agent is doing, so people watching can follow its steps and see the ones to come. Returns task: its id, title and plan.
  • titlestring, requiredWhat you're doing.
  • identitystringThe identity it's for.
  • planstring[]The steps you mean to take, up to 20 of 120 characters.
update_plan
Replaces the plan of the current task. Returns task: its id, title and plan.
  • stepsstring[], requiredWhat's left to do, not what's done. An empty list clears the plan.
finish_task
Ends the current task, or a job run's. Returns task: its id, title and status, and run: how a job run ended, or null.
  • summarystringHow it went.
  • stoppedbooleanEnd it as stopped rather than done.
  • run_idstringA job run's id, run_…. Finishes the task its claim started, and the run ends with it.
wait_for_event
The agent's events after the cursor, oldest first, from the last 7 days: a job is due, a person answered, someone took over its window and the like. Returns events, the cursor to pass next time, and more when more are waiting. See .
  • afterstringThe cursor from the last answer. Leave it out the first time.
  • waitintegerSeconds to wait when there are no events yet, 0 to 20. Default 10.
list_jobs
The jobs admins scheduled for the agent: each one's identity, instructions and schedule. Returns jobs, each with openRun: its run waiting to be claimed or under way, if any.No arguments.
claim_job_run
Claims a due job run within its 15 minutes, which starts its task in the job's identity. Returns run, the job with its instructions, and the task it started.
  • run_idstring, requiredThe run's id, run_…, from job.due or list_jobs.
close_window
Closes the window, freeing one of the identity's 5. Returns Closed.
  • windowstring, requiredThe window id from open_window.

How a page reads

read_page and every tool that acts answer with the page as text, ready for a model: its title and address, its tabs when there's more than one, its elements by ref and then its words. A screenshot comes as an image where the tool takes one.

When a press is waiting for a person, the answer says so, with the question's id:

Use the HTTP API

For your own code, the same abilities are endpoints at https://api.joinpane.com/v1, with the same key. Send JSON with Content-Type: application/json; answers are JSON.

Every endpoint, with its request, its response and the errors to expect, is in the .

What agents can and can't do

An agent can

  • Open its own window in the identities an admin picked, already signed in.
  • Read a page as text, with the elements it can press or fill in and a screenshot.
  • Press, type, scroll, go back and forward and switch tabs, with real clicks and keys.
  • Send files from Drive to a website, from the files its Drive setting allows.
  • Ask people a question and wait for their answer.

An agent can't

  • Get cookies, session tokens, stored data or saved passwords. No tool runs a script on a page.
  • Read or type into password fields. A password's value never appears in a read, and typing into one stops with password, unless an admin allows agents to in team policies.
  • Open or act in anyone else's window.
  • Open pages an admin keeps for admins only, or addresses the identity's rules don't allow.
  • Get around a website's checks. When a page asks to prove it's a person, Joinpane tells the people in the identity, and the agent should stop and ask a person. Joinpane never solves these.

Read only

With Read only in an identity, an agent reads and never changes anything. It can read pages, scroll, go back and forward, switch tabs and go to an address on the identity's own website. Pressing, typing, keys and sending files answer 403 forbidden.

Plenty of websites act on a plain link, so an address answers 403 forbidden too, before anything opens, when it's on another website, when it would sign the identity out (which signs out everyone in it), or when it reads like it changes something: deleting, removing, cancelling, unsubscribing, revoking, disabling, confirming, accepting, approving, declining or closing an account. Joinpane reads the whole address for these, decoded, its query and fragment included, and finds the words inside longer ones too, like /userlogout, /deleteaccount or a single sign-on logout. An address that only names what already happened, like /deleted-items or ?status=cancelled, still opens. An agent that needs one of these asks a person, or an admin lets it drive.

The identity's own website is everything under its registrable domain. For an identity on app.example.com that's example.com, so the agent can open accounts.example.com and example.com, never com. A website on a shared domain, like mei.github.io, is only itself. If a page sends a read-only window to an address that signs out or changes something by itself, with a redirect, a refresh or a script, the window stays where it was and the agent's next step says why.

When a person takes over

Anyone with access can watch an agent's window and take over. While a person drives it, the agent's steps answer 409 conflict with who's driving, and it carries on once they hand over. Everything an agent does goes in the audit log under its own name and key, and its steps show in Agents as it works.

Asking a person

Some presses can't be undone. Before them, an agent stops and asks the people its settings name, all at once. They see what the agent sees, and the first answer counts.

Always
Publishing and paying: publish, post, go live, schedule, pay, buy, check out, subscribe and the like. Locked on for every agent by workspace policy.
If an admin turns it on
Changing settings on the website's account, privacy and billing pages, deleting, and sending messages: replies, comments and direct messages.

Joinpane tells from the button's name, and for settings from the page it's on. When in doubt, it asks. By default the person who added the agent is asked; an admin can choose others in Agents.

  1. The press stops and asks. It waits up to 20 seconds for an answer. Approved in time, the press goes ahead and you get the page.
  2. Still waiting, it says so. You get "status": "waiting" and the question with its id.
  3. Wait for the answer. Call wait_for_answer, or GET /v1/questions/{question}?wait=25, until it's answered.
  4. Press again with the approval. Pass the question's id as approval. If the answer was Decline, leave it and move on: a press nobody approved answers 403.

An approval is for the one press the person saw: the button with that name, on that website, once, within 30 minutes. If the button's name changed, or it's somewhere else, the press asks again. While a person is deciding, they can change an earlier answer the press relies on. The question is then withdrawn ("status": "cancelled") and you get question.answered with changed: act on the new answer, then press again, which asks again.

If nobody answers in 30 minutes, the agent keeps waiting or skips that task, as its settings say. Skipping leaves the website as it is. To ask something of its own, an agent uses ask_person, or , with the answers it offers.

Tasks and plans

A task names what an agent is doing, like “Publish episode 13”. Its steps show in Agents and beside its window as it works, so the people watching can follow along. Opening a window starts one, like “Working in Studio uploads”, when none is running there.

  • Start one with its plan: start_task, or , with a title and, if you like, the steps you mean to take. People watching see the plan as the steps to come, after the steps taken.
  • Keep the plan current: update_plan, or , replaces it. Send what's left, not what's done; an empty list clears it.
  • A plan is up to 20 steps of 120 characters each. Longer steps are shortened and empty ones dropped.
  • Finish the task with finish_task, or , as done or stopped, with a summary. A finished task shows no plan. Starting a new task in the same identity finishes the one before as done.
  • A job run's task starts when the agent claims the run, titled as the job. Starting a task in that identity while the run is under way renames it and sets its plan instead of finishing it. Finishing it ends the run. See .

Scheduled jobs

A job is work an admin saves once for an agent: what to do, in which identity, and when. When it's due, Joinpane wakes your agent with the job's instructions, and your agent does the work in its own window, as for any task. Joinpane keeps the schedule and every run. It runs no model: the agent is yours, wherever it runs.

  • Admins make jobs on the agent's page, under Jobs: New job, then the identity, a title, the instructions and a schedule. Admins also edit them, turn them off and on, use Run now and delete them. People who can open the identity see its jobs and their runs. Agents list their jobs and work their runs; they don't make jobs.
  • In an identity the agent can drive or read, never someone's personal identity, lent or not. In a read-only identity the job's work is reading: the agent opens pages and reads them, and doesn't press or type.
  • Instructions are plain words, up to 4,000 characters, sent as written with every run. A title is up to 80. The agent works already signed in, so instructions never need a password or a sign-in code: don't put one there.
  • Up to 10 jobs a workspace on Starter, across its agents, and 100 on Pro and Business.

Schedules

Once
A date and a time.Reads “Once, Oct 30 at 20:00”.
Every day
Up to 4 times a day.Reads “Every day at 20:00” or “Every day at 09:00 and 20:00”.
Days of the week
The days, and up to 4 times.Reads “Mon, Wed, Fri at 09:30” or “Weekdays at 09:30”.
Every few hours
Every 1, 2, 3, 4, 6, 8 or 12 hours, from a time.Reads “Every 4 hours from 08:00” or “Every hour from 08:00”.

Times are 24-hour, in the workspace's time zone, and nothing runs more often than once an hour. A once job's time has to be at least a minute ahead. Every few hours means the same times each day: every 4 hours from 08:00 runs at 00:00, 04:00, 08:00, 12:00, 16:00 and 20:00.

Where the clocks change, a time they skip runs as late as they jumped: the night they go from 02:00 to 03:00, a job at 02:30 runs at 03:30. A time that comes twice when they go back runs once, the first time. If the workspace's time zone changes, jobs keep their times in the new one.

Runs

Each time a job is due, Joinpane makes a run, at most a minute late.

  1. It's due. Your agent gets job.due, with the job's title and instructions, the identity and the run's id, by every way it listens. See .
  2. The agent claims it within 15 minutes, with claim_job_run or . (The app says the agent picks it up.) That starts the run's task in the job's identity, and people watching see it was started by its schedule.
  3. It does the work in its own window, as for any task, and still asks a person before publishing or paying.
  4. It finishes the task with the run's id: finish_task with run_id, or with run. The run ends done, or failed when the task stopped, with its summary.
  • One run at a time. A run due while the last one is still waiting or running is skipped.
  • A skipped run says why, and sends no event: the agent or the identity was paused, the agent couldn't use the identity, the identity wasn't signed in yet or someone was using it alone, or the workspace was paused, suspended, on a plan without agents or at its usage limit.
  • 3 misses in a row of one job tell the admins and whoever made the agent, in the Inbox and by email, once, until the agent claims a run again. Misses Joinpane caused don't count.
  • Run now makes a run at once, by the same rules, even while the job is off.
  • Turning a job off or deleting it cancels a run still waiting to be claimed. A run under way carries on to the end, and its task stays in the agent's Tasks.
  • Runs are kept for 90 days, on the job's page, each with its task.

Hearing about things

Things happen that an agent may want to act on: a job is due, a person answered its question, someone took over its window, an identity was signed out. Each is an event. An agent hears about them in any of three ways, and can use more than one.

Pull
answers at once when there are events. With none yet, it answers at once unless you ask it to wait: wait is 0 by default, up to 25 seconds. Pass the cursor from each answer as after next time.
Over MCP
wait_for_event, with the cursor it last gave you as after. It waits 10 seconds by default, 20 at most.
A webhook
For an agent with a public https address. An admin sets it on the agent's page, and Joinpane posts each event there as it happens, signed, and tries again for a day when it doesn't get through. See .
  • At least once. Each agent's events are numbered, and the cursor is the number you got to, so pulling and wait_for_event give them in order, oldest first. Every event carries its cursor. A webhook's deliveries are at least once and can arrive out of order across retries, so order by cursor. Any event can come twice, by a retry or by two ways at once: its id (aev_…) is the event, so drop one you've seen.
  • Kept for 7 days, whatever a webhook did with them. Without a cursor, you get every event still kept. Past 10,000 in an hour, the rest of that hour's come as one events.coalesced that says how many there were.
  • Ids, names and reasons. No event carries a page, a cookie, a password or a sign-in code, or anything about a window the agent can't see. job.due carries the job's instructions as an admin wrote them.
  • A personal identity lent to the agent stays its owner's. Events about it reach only keys the owner made, and never a webhook.

Every type and what it carries is in .

A job, start to finish

Mei gave Uploader a job in Studio uploads: “Publish next video”, every day at 20:00 Tokyo time. Uploader runs on Northlight's own server. Each evening it hears job.due, claims the run, does the work in its own window and finishes the task with the run's id.

With the HTTP API

  • Claim each run as it arrives, then work. A run not claimed before claimBy, 15 minutes after it's due, is missed, and a task can take longer than that. The loop claims every job.due at once and works the runs one by one beside it.
  • Keep the cursor where a restart can't lose it. After one, lists runs still waiting to be claimed or under way, and the loop takes those first.
  • A repeat does no harm. Claiming a run again answers claimedNow: false with the run as it is. If it's running and no work of yours has it, as after a restart, carry on with it; the loop works each run once.
  • Check the identity's access. When identity.access in job.due is read, the work is reading: pressing and typing answer 403.

Over MCP

Ids are shortened here; the tools take them whole.

Its task's steps show live in Agents, and publishing still waits for Mei or Rin to approve it, as in .

Windows, hours and pauses

  • Windows count toward the identity's 5, people and agents together. When all are open, opening one answers 409 seats_full. An agent has one window in each identity: opening another where it has one gives that one back.
  • Close the window when the task is done. It frees a place for someone else, and an agent's browser hours count the time its windows are open.
  • An admin can set a monthly budget of browser hours for each agent, counted in the workspace's time zone. At the budget the agent pauses: opening a window and every step answer 409 conflict, and the people it asks are told. It carries on by itself when an admin raises the budget above what it used in Agents, or when the month turns.
  • Hours come from your plan: 100 a month on Starter and 200 on Pro, shared by people and agents, then $0.05 an hour. See .
  • A paused agent waits. It can't open windows or take steps, which answer 409 conflict: paused by a person, until someone resumes it; paused at its budget, until the budget is raised or the month turns.
  • Up to 120 requests a minute for each agent, over MCP and the HTTP API together; each message in an MCP batch counts. Past that, requests answer 429 rate_limited with Retry-After. An agent at work never gets near it: send one step at a time to a window and wait for its answer. A step waits for the page to settle and gives up after 45 seconds with 503 node_unavailable.
  • An MCP batch holds up to 10 messages. A longer one is refused whole, before anything runs, with JSON-RPC error -32600.
  • A window that's closed answers 404. Open one again and carry on.

A worked example

Uploader publishes episode 13 on studio.example. It opens a window in Studio uploads, reads the page, clicks into the episode, types its description, asks a person before publishing, and finishes. First with curl, then over MCP.

With curl

  1. Keep the key in your shell.The commands below read it from JOINPANE_KEY.
  2. Name the task, with its plan.People watching see its steps so far and the ones to come.
  3. Open a window in the identity.The answer's window.id is the window, win_01k7f3q2m9x4c8v6t1b5n0r2hd. Keep it.
  4. Read the page.Among its elements is {"ref": "e5", "role": "link", "name": "Episode 13"}.
  5. Click the episode.The answer is its details page, where the description field is e4 and Publish is e7.
  6. Type the description, and say what's left.Typing replaces what's in the field unless you send clear: false. The new plan has only the steps still to come.
  7. Press Publish. It asks a person first.Publishing always asks. Nobody answered within 20 seconds, so the answer is "status": "waiting" with the question. Keep its id.
  8. Wait for the answer.Ask again until status is answered. Here Mei chose Approve.
  9. Press Publish again, with the approval.The press goes through and the answer is the published page.
  10. Finish the task and close the window.Closing frees one of the identity's windows and stops the agent's hours.

Over MCP

Add Joinpane to your agent's MCP settings, as in , and give it the task in your own words: “In Studio uploads, add the description ‘Our spring live special, in full.’ to episode 13 and publish it.” These are the calls it makes:

Ids are shortened here; the tools take them whole.

The tools return what the endpoints above do, as text and an image. Its steps show live in Agents, where Mei and Rin can watch and take over at any point.