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.
- 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.
- Add the agent. In Agents, choose New agent, name it, tick the identities it can drive and choose Add agent.
- Copy its key. It's shown once. Put it in your agent's settings or wherever it keeps secrets.
- 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.
{
"mcpServers": {
"joinpane": {
"url": "https://mcp.joinpane.com/northlight",
"headers": { "Authorization": "Bearer YOUR_AGENT_KEY" }
}
}
}Clients that ask for a transport want Streamable HTTP, sometimes written "type": "http". In Claude Code, one command adds the server:
claude mcp add --transport http joinpane https://mcp.joinpane.com/northlight \
--header "Authorization: Bearer YOUR_AGENT_KEY"- A key works only at its own workspace's address. At another, the server answers
403and 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'sname,website,accessandstatus.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: itsid,identity,url,titleandaccess.- 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, asopen_windowdescribes 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.
- windowstring, requiredThe window id from
- 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. OrStatus: waitingwith the question and its id, orStatus: declined.- windowstring, requiredThe window id from
open_window. - refstring, requiredAn element's ref, like
e12. - approvalstringAn approved question's id.
- windowstring, requiredThe window id from
- 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.
- windowstring, requiredThe window id from
- press_key
- Presses one key. Returns the page, without a screenshot.
- windowstring, requiredThe window id from
open_window. - keystring, requiredA key name, like
EnterorEscape.EnterandSpaceask a person first when a click on what's focused would. - approvalstringAn approved question's id.
- windowstring, requiredThe window id from
- scroll
- Scrolls by most of a screen. Returns the page, as for
read_page.- windowstring, requiredThe window id from
open_window. - directionstring
downorup. Defaultdown.
- windowstring, requiredThe window id from
- go_back
- Goes back a page in the current tab. Returns the page, as for
read_page.- windowstring, requiredThe window id from
open_window.
- windowstring, requiredThe window id from
- go_forward
- Goes forward a page in the current tab, after
go_back. Returns the page, as forread_page.- windowstring, requiredThe window id from
open_window.
- windowstring, requiredThe window id from
- 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.
- windowstring, requiredThe window id from
- list_drive_files
- The Drive files the agent may send to websites. Returns
files: each one'sname,sizein bytes andmimetype.- 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.
- windowstring, requiredThe window id from
- 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: itsid,status,answerand 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.
- windowstring, requiredThe window id from
- wait_for_answer
- Waits up to 20 seconds for an answer. Returns
question, asask_persondescribes 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: itsid,titleandplan.- 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: itsid,titleandplan.- 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: itsid,titleandstatus, andrun: how a job run ended, ornull.- 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, thecursorto pass next time, andmorewhen more are waiting. See Hearing about things.- afterstringThe
cursorfrom the last answer. Leave it out the first time. - waitintegerSeconds to wait when there are no events yet, 0 to 20. Default
10.
- afterstringThe
- list_jobs
- The jobs admins scheduled for the agent: each one's identity, instructions and schedule. Returns
jobs, each withopenRun: 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, thejobwith its instructions, and thetaskit started.- run_idstring, requiredThe run's id,
run_…, fromjob.dueorlist_jobs.
- run_idstring, requiredThe run's id,
- close_window
- Closes the window, freeing one of the identity's 5. Returns
Closed.- windowstring, requiredThe window id from
open_window.
- windowstring, requiredThe window id from
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.
Page: Episode 13 details https://studio.example/content/ep13/details Elements: e1 link "Content" e2 link "Uploads" e3 textbox "Title" type=text value="Episode 13" e4 textbox "Description" e5 button "Upload thumbnail" e6 button "Save draft" e7 button "Publish" Text: Content Uploads Episode 13 details Title Description Thumbnail Visibility Draft Save draft Publish
When a press is waiting for a person, the answer says so, with the question's id:
Status: waiting Question apr_01k7f4a6s2d8g3h5j9k1m7p0qr (pending): Uploader wants to press "Publish" on studio.example Asked: Mei Lin, Rin Kato Call wait_for_answer with question_id apr_01k7f4a6s2d8g3h5j9k1m7p0qr.
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.
# Open a window in Studio uploads curl https://api.joinpane.com/v1/windows \ -H "Authorization: Bearer $JOINPANE_KEY" \ -H "Content-Type: application/json" \ -d '{"identity":"Studio uploads"}' # Read the page in it, with the window's id from the answer curl https://api.joinpane.com/v1/windows/$WINDOW/page \ -H "Authorization: Bearer $JOINPANE_KEY"
Every endpoint, with its request, its response and the errors to expect, is in the HTTP API reference.
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.
- 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.
- Still waiting, it says so. You get
"status": "waiting"and the question with its id. - Wait for the answer. Call
wait_for_answer, orGET /v1/questions/{question}?wait=25, until it's answered. - 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 answers403.
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 POST /v1/questions, 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 POST /v1/tasks, 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 PUT /v1/tasks/current/plan, 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 POST /v1/tasks/current/finish, 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.
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.
- 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 Hearing about things. - The agent claims it within 15 minutes, with
claim_job_runor POST /v1/job-runs/{run}/claim. (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. - It does the work in its own window, as for any task, and still asks a person before publishing or paying.
- It finishes the task with the run's id:
finish_taskwithrun_id, or POST /v1/tasks/current/finish withrun. The run endsdone, orfailedwhen the task stopped, with its summary.
| Status | Means |
|---|---|
| due | Sent to the agent, and waiting for it to claim the run before claimBy. |
| running | Claimed. Its task is under way. |
| done | Its task finished. |
| failed | Its task stopped. |
| timed_out | Claimed, but not finished 6 hours later. Its task is stopped. |
| missed | Not claimed within 15 minutes. Or Joinpane couldn't start it on time, so it wasn't sent; those misses aren't the agent's. |
| skipped | It couldn't run, for one of the reasons below. No event was sent. |
| cancelled | Its job was turned off or deleted before the agent claimed it. |
- 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
- GET /v1/events?after=<cursor>&wait=25 answers at once when there are events. With none yet, it answers at once unless you ask it to wait:
waitis 0 by default, up to 25 seconds. Pass thecursorfrom each answer asafternext time. - Over MCP
wait_for_event, with the cursor it last gave you asafter. 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 Agent events.
- At least once. Each agent's events are numbered, and the cursor is the number you got to, so pulling and
wait_for_eventgive them in order, oldest first. Every event carries itscursor. A webhook's deliveries are at least once and can arrive out of order across retries, so order bycursor. Any event can come twice, by a retry or by two ways at once: itsid(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.coalescedthat 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.duecarries 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 Agent event types.
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
// Uploader's loop, on Northlight's own server. yourAgent, loadCursor and saveCursor // are your own code: Joinpane runs no model. const API = "https://api.joinpane.com/v1"; const headers = { Authorization: `Bearer ${process.env.JOINPANE_KEY}` }; const queue = []; const taken = new Set(); // Claim a run the moment it's due, then queue its work: a long task never makes // the next run wait past its 15 minutes. async function take(runId) { const claim = await fetch(`${API}/job-runs/${runId}/claim`, { method: "POST", headers, }); // 410 or 409: missed, cancelled or skipped. The error's message says which. if (!claim.ok) return; const { run, job } = await claim.json(); // claimedNow is false for a run claimed before: by this loop (the same job.due came // twice), or before a restart and still running, which is yours to carry on with. if (taken.has(run.id)) return; taken.add(run.id); queue.push({ run, job }); } // The work, one run at a time, beside the listening. async function work() { for (;;) { const next = queue.shift(); if (!next) { await new Promise((wake) => setTimeout(wake, 1000)); continue; } const { done, summary } = await yourAgent(next.job.instructions, next.job.identity); await fetch(`${API}/tasks/current/finish`, { method: "POST", headers: { ...headers, "Content-Type": "application/json" }, body: JSON.stringify({ run: next.run.id, status: done ? "done" : "stopped", summary, }), }); } } void work(); // After a restart: runs still due, and the ones it had claimed and was working on. const open = await (await fetch(`${API}/job-runs`, { headers })).json(); for (const run of open.runs) await take(run.id); // The cursor, kept where a restart can't lose it. let cursor = await loadCursor(); for (;;) { const query = cursor ? `after=${cursor}&wait=25` : "wait=25"; const page = await (await fetch(`${API}/events?${query}`, { headers })).json(); for (const event of page.events) { if (event.type === "job.due") await take(event.data.run.id); } cursor = page.cursor; await saveCursor(cursor); }
- 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 everyjob.dueat once and works the runs one by one beside it. - Keep the cursor where a restart can't lose it. After one, GET /v1/job-runs 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: falsewith the run as it is. If it'srunningand 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.accessinjob.dueisread, the work is reading: pressing and typing answer403.
Over MCP
wait_for_event() # job.due: "Publish next video" in Studio uploads, run run_01k7f2x0c4v8b2n6m0q4w8e2rt. # Claim it by 20:15. Cursor 1288. claim_job_run(run_id: "run_01k7…e2rt") # Its task started. The answer has the job's instructions. open_window(identity: "Studio uploads") read_page(window: "win_01k7…r2hd") # The work, asking a person before publishing, as in Asking a person, above. finish_task(run_id: "run_01k7…e2rt", summary: "Published Episode 14.") close_window(window: "win_01k7…r2hd") wait_for_event(after: "1288")
Its task's steps show live in Agents, and publishing still waits for Mei or Rin to approve it, as in Asking a person.
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 Pricing.
- 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_limitedwithRetry-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 with503 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
- Keep the key in your shell.The commands below read it from
JOINPANE_KEY.export JOINPANE_KEY=jp_live_… - Name the task, with its plan.People watching see its steps so far and the ones to come.
curl https://api.joinpane.com/v1/tasks \ -H "Authorization: Bearer $JOINPANE_KEY" \ -H "Content-Type: application/json" \ -d '{"title":"Publish episode 13","identity":"Studio uploads","plan":["Open episode 13","Add its description","Ask before publishing","Publish it"]}' - Open a window in the identity.The answer's
window.idis the window,win_01k7f3q2m9x4c8v6t1b5n0r2hd. Keep it.curl https://api.joinpane.com/v1/windows \ -H "Authorization: Bearer $JOINPANE_KEY" \ -H "Content-Type: application/json" \ -d '{"identity":"Studio uploads"}' export WINDOW=win_01k7f3q2m9x4c8v6t1b5n0r2hd - Read the page.Among its elements is
{"ref": "e5", "role": "link", "name": "Episode 13"}.curl "https://api.joinpane.com/v1/windows/$WINDOW/page?screenshot=false" \ -H "Authorization: Bearer $JOINPANE_KEY"
- Click the episode.The answer is its details page, where the description field is
e4and Publish ise7.curl https://api.joinpane.com/v1/windows/$WINDOW/click \ -H "Authorization: Bearer $JOINPANE_KEY" \ -H "Content-Type: application/json" \ -d '{"ref":"e5"}' - 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.curl https://api.joinpane.com/v1/windows/$WINDOW/type \ -H "Authorization: Bearer $JOINPANE_KEY" \ -H "Content-Type: application/json" \ -d '{"ref":"e4","text":"Our spring live special, in full."}' curl -X PUT https://api.joinpane.com/v1/tasks/current/plan \ -H "Authorization: Bearer $JOINPANE_KEY" \ -H "Content-Type: application/json" \ -d '{"steps":["Ask before publishing","Publish it"]}' - 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.curl https://api.joinpane.com/v1/windows/$WINDOW/click \ -H "Authorization: Bearer $JOINPANE_KEY" \ -H "Content-Type: application/json" \ -d '{"ref":"e7"}' export QUESTION=apr_01k7f4a6s2d8g3h5j9k1m7p0qr - Wait for the answer.Ask again until
statusisanswered. Here Mei chose Approve.curl "https://api.joinpane.com/v1/questions/$QUESTION?wait=25" \ -H "Authorization: Bearer $JOINPANE_KEY"
- Press Publish again, with the approval.The press goes through and the answer is the published page.
curl https://api.joinpane.com/v1/windows/$WINDOW/click \ -H "Authorization: Bearer $JOINPANE_KEY" \ -H "Content-Type: application/json" \ -d "{\"ref\":\"e7\",\"approval\":\"$QUESTION\"}" - Finish the task and close the window.Closing frees one of the identity's windows and stops the agent's hours.
curl https://api.joinpane.com/v1/tasks/current/finish \ -H "Authorization: Bearer $JOINPANE_KEY" \ -H "Content-Type: application/json" \ -d '{"summary":"Published episode 13."}' curl -X DELETE https://api.joinpane.com/v1/windows/$WINDOW \ -H "Authorization: Bearer $JOINPANE_KEY"
Over MCP
Add Joinpane to your agent's MCP settings, as in Connect over MCP, 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:
start_task(title: "Publish episode 13", identity: "Studio uploads", plan: ["Open episode 13", "Add its description", "Ask before publishing", "Publish it"]) open_window(identity: "Studio uploads") # The window: win_01k7f3q2m9x4c8v6t1b5n0r2hd read_page(window: "win_01k7…r2hd") click(window: "win_01k7…r2hd", ref: "e5") type(window: "win_01k7…r2hd", ref: "e4", text: "Our spring live special, in full.") update_plan(steps: ["Ask before publishing", "Publish it"]) click(window: "win_01k7…r2hd", ref: "e7") # Status: waiting. Question apr_01k7f4a6s2d8g3h5j9k1m7p0qr went to Mei and Rin. wait_for_answer(question_id: "apr_01k7…p0qr") # Answer: Approve (Mei Lin) click(window: "win_01k7…r2hd", ref: "e7", approval: "apr_01k7…p0qr") finish_task(summary: "Published episode 13.") close_window(window: "win_01k7…r2hd")
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.