Get job
get_jobGet a job: its status, its question (input_request), its result and any error.
Pass wait_seconds to wait until the job asks a question or finishes. If the wait ends first, call again. Each answer's next names the exact call to make next.
Each next suggests its wait_seconds: 30 seconds for a run, 30 to 50 seconds for a build, and 50 seconds for a repair or a long run. Waiting longer is fine. A caller whose server receives webhooks can create one with call_pomerado_api with operation "webhooks.create" to learn when a job asks a question or ends, instead of polling.
Each time a build's build.now.label changes, show the user its progress as a text bar: the position of build.stage in build.stages, then build.now.label, such as [######----] 3/5 Exploring the site.
Never ask for a password in chat. When a job needs a login, a code or an approval, give the user its input_request's answer_url and keep waiting here, with wait_past set to that request's id.
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.
Keep calling until a reply says the job has ended, and keep the connection open. A question expires 10 minutes after it is asked, a browser_handoff 30 minutes. A job you stop following can fail on it. Never start the same job again.
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 result is handed out once; include_result false reads the job without using it up.
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 finished build names its tool as tool_id. Run it with run_website_tool, or run_read_only_website_tool when its effect is read.
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": {
"job_id": "<job_id>"
},
"name": "get_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | a job ID: job_ and 32 lowercase hex digits | |
| wait_past | No | The id of an input_request you already gave the user: the wait continues while it is pending and after it is answered, and returns when the job asks something new or finishes. | |
| wait_seconds | No | Seconds to wait for the job to ask a question or finish: up to 1800, or 50 when your client accepts only JSON. 0 or absent reads the job at once. | |
| include_result | No | false to read the job without its result, which stays for a later read; result_status says whether one waits. Default true. |