From an MCP client
For a read tool, your agent callsrun_read_only_website_tool, with the input as a JSON-encoded string:
next (get_job with wait_seconds) instead of running the tool again.
For a write tool, use run_website_tool and send an idempotency_key.
From the REST API
202 and the job. Read the job after the Retry-After seconds, until its status is succeeded, failed or cancelled:
Details
Details
- Run a write tool with
POST /v1/runsand anIdempotency-Keyheader, so a retry returns the same job instead of acting on the site twice. See retries and idempotency. - A job can stop with status
needs_inputto ask a question, such as a sign-in code. See answer questions. - Instead of polling, get a webhook when a job asks a question or finishes.
- A tool that signs in uses your saved login for the site. See logins.