Run read-only website tool
run_read_only_website_toolRun a Pomerado website tool whose effect is read and return its job with the result, usually in seconds.
It changes nothing on the website, so several calls can run at once.
Pass the tool's id from find_website_tool as tool_id. A tool whose effect is write is refused with tool_not_read_only; run it with run_website_tool.
It waits up to 50 seconds. If the job asks a question or is still running, follow it with get_job instead of calling again. Pass an idempotency_key on every run, reads included, and reuse it only to retry the same call. If your call drops before you get a job back, repeat it unchanged with that key: it rejoins the same job instead of starting another, and get_job then gives you its result.
When a tool takes a ZIP code and the answer is a price, stock or a delivery promise, pass the user's own. Left out, the site picks a location from the run's IP address, which is not the user's.
When a run's tool breaks, the run returns with maintenance.status repairing while Pomerado fixes the tool. Don't cancel it. Keep calling get_job, and keep the connection open, until the repair ends.
A tool that signs in uses the site's saved login; login_id picks one when there are several. With none saved, the job asks the user on its answer page.
When a job needs a login, a code or an approval, give the user its answer_url. Never ask for a password in chat.
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.
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 result too big to answer inline comes as result_file, a single-use result.json link, with result_preview showing its start: download it once, sending its transfer_key as the Pomerado-Transfer-Key header, such as with curl -fsS -o result.json -H 'Pomerado-Transfer-Key: <transfer_key>' '<download_url>', which fails on an HTTP error instead of saving it. A file a run downloads comes as a $file whose limits give the caps its account's files keep to (max_file_bytes, max_files_per_run, max_run_bytes); a download over them fails the run, and for larger files the user can email founders@pomerado.ai (ask the user first; never email on your own).
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": {
"tool_id": "<tool_id>",
"input": "<input>"
},
"name": "run_read_only_website_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | The tool's input, JSON-encoded, as its input_schema describes. | |
| 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. | |
| shape | No | Your saved shape of this tool, to get its result in that form; the job's shape says if it applied. | |
| 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. | |
| tool_id | Yes | The ID of the tool to run, from a tool search | |
| login_id | No | The saved login to sign in with, when the site has several | |
| takeover | No | Business accounts only. true to have a person sign in to the website themselves, in this run's browser, instead of the tool's own sign-in. The run asks for them on its answer page. Their session is kept in the run's saved login, which needs Edit access to it, or, when the site has no saved login with a password or code, in a new session login of their own once they sign in, whose ID the job's login_save.login_id gives; a later run reuses it only by naming it. | |
| save_login | No | Save login for later runs (requires login) | |
| correct_login | No | Fix the rejected saved login named by login_id during this run | |
| 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. | |
| two_factor_method | No | The two-factor method to use when the site offers several; one the tool supports | |
| allow_trust_this_device | No | Lets this run confirm the site's prompt to trust this browser for later sign-ins, if that prompt appears during sign-in. Off by default, and the run then stops before the prompt and changes nothing. | |
| allow_sign_out_other_device | No | Lets this run confirm the site's prompt to sign out another of your devices or sessions, if that prompt appears during sign-in. Off by default, and the run then stops before the prompt and changes nothing. |