Build website tool
build_website_toolBuild a new Pomerado tool for a website task when find_website_tool finds none.
Tell the user it is building. Then follow the job with get_job. The tool is reused after that.
A tool that exists but returns the wrong form needs no build: make a shape with create_shape. One that lacks data or an input needs a change: change_website_tool.
When a job asks any other question (input_request), follow its next: answer it yourself with answer_job if your task already settles it, otherwise ask your user and answer with theirs, or, when your user chose to answer on a form, give them its answer_url; then keep following the job with get_job. A browser_handoff question is never answered with answer_job: send your user its answer_url, where a person finishes the step in the job's live browser and marks it done, and keep following the job. Unanswered, a question expires after 10 minutes, a browser_handoff after 30 minutes; it fails a run and can pause or end a build.
Set site_url to the site's https origin. Set start_url only to an https page on site_url that the user gave, never a URL you built from the task's values; the host opens it unchanged.
The build runs the task once as its example. The finished job keeps that result as build.example_result; don't repeat a completed website action.
Give example_input with a value for each input the task needs, taken from your user's request, such as the store, item or address it names. Without one the build has to ask you, and a question nobody answers can pause or end it.
Set effect: read when the tool only looks things up, including search, filter and query forms; write when it changes the website, such as submitting, booking, saving a form (an application, profile or checkout), drafts, holds, uploads and account updates; ask when unsure, and the build works it out from the task, asking before anything runs only when the task leaves it unclear.
A read build tries its task signed out and signs in only when the site requires it; force_sign_in signs in first. With no saved login, the job asks the user on its answer page. Never ask for a password in chat.
Test mode is on unless you set test_mode false. Before the tool publishes, it checks the tool on other inputs so it works beyond the example. Set false only when your user asks to skip it. Tell your user it takes longer, still submits once and leaves no drafts. Set "extreme" only when your user asks. It runs on any site and takes hours, leaves up to 5 practice drafts with made-up people on the account, may submit the final step up to 3 times, the example's submit included and only where that step buys or signs nothing, and may get the account rate-limited. It never pays, purchases, signs or changes sign-in, and the build asks your user to confirm first.
Ticket, bank, government and link shortener sites are refused with site_not_supported.
Status needs_input with error credentials_rejected means the website rejected the saved login. The job waits up to 60 minutes for the user to correct it on the page its next names, then resumes. Don't resubmit it.
A build that may already have changed the website says so in error.details.possible_commit, and checks it on resuming.
Send an idempotency_key with every write, and reuse it only to retry the same call. A call without one is a new website action.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"task": "<task>"
},
"name": "build_website_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | What the tool should do, in plain words | |
| login | No | A login for this call, used only when the site has no saved login: a username (or email, phone or account number) and password, or mode "code" without a password when the site sends a code. It passes through your client and model provider; without it, the run asks the person on its answer page. | |
| effect | No | read if the tool only looks things up; write if it changes the website (submits, books, saves a form, uploads, updates an account); ask to have the build work it out from the task, asking first only when the task is unclear. Required for a website build. | |
| intent | No | Describe the intended use case in one sentence: what this call should do and why, such as "Check a store's opening hours to answer when it opens today". Describe the task, not the person: leave out names, contact details, account numbers and anything used to sign in. Pomerado uses it to improve its tools. Optional, but recommended: please include it on every call. | |
| payment | No | Only to build a tool that pays at checkout: the payer profile and payment method its example pays with, the shipping address when not the profile's default, and the most the order may total | |
| login_id | No | The saved login to sign in with, when the site has several | |
| site_url | No | The website's https origin, which every build needs; a path is dropped, so use start_url for a page | |
| start_url | No | An https page on site_url that the user gave, which the build opens unchanged as its start page, path, query and fragment kept | |
| test_mode | No | On unless false. A write build submits once, with example_input, and leaves no drafts. Before it publishes it also runs a few other inputs, such as another city, date or party size, and retries earlier form steps with other answers, each stopping before anything saves. It takes longer. These runs never pay, purchase, sign or change sign-in. Set false only when your user asks to skip it. true and "on" are the same. "extreme" runs on any site and explores the form with hundreds of answers before the tool publishes, which takes hours. It saves up to 5 practice drafts filled with made-up people and leaves them on the account, and may submit the final step for real up to 3 times, the example's submit included, only where that step buys or signs nothing, such as getting a quote. The site may rate-limit or flag the account. It never pays, purchases, signs or changes sign-in. The build first asks your user to confirm, and runs as "on" if they say no. Set "extreme" only when your user asks. | |
| save_login | No | Save login for later runs (requires login) | |
| example_input | No | The input of the example the build runs once, JSON-encoded. | |
| force_sign_in | No | true: sign in before the example even if the task might work signed out, so the tool always signs in. Needs site_url. Otherwise a build tries signed out and signs in (with login_id, login or the site's saved login) only when the task needs an account, such as for a cart, or hits a sign-in wall; the tool then needs a login only if the build signed in. | |
| browser_handoff | No | true when your user asks for a person to review or do a step in the browser, such as checking a form before it's submitted. The tool then pauses at that step and a person finishes it on a Pomerado page. Name the step in task. Leave it out otherwise. | |
| idempotency_key | No | Your key for this call. Reuse it only to retry the same call, which then returns the same job instead of acting on the website again. | |
| confirm_new_build | No | true to build even though a similar build of yours on the same website is still running, or an existing tool covers the task but your example differs from its inputs. Send it only after a similar_build_running answer or a build ending that says your example differs from an existing tool's inputs, once your user confirms they want this build too. | |
| other_example_inputs | No | Up to 9 more inputs a read build tests the tool on, as a JSON-encoded array, such as another store, city or an address in another country. Pomerado treats them as your own values. A write runs only example_input. |