Skip to main content

Arguments

Output

The run’s job, with the tool’s result in result once it succeeds. A job still running carries next, the call that follows it.
  • 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 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).
Effect: Reads only; changes nothing.