{
  "schema_version": 1,
  "name": "Ask me for the code, then continue",
  "version": 1,
  "description": "When a step needs a human — a one-time code from your phone, or a captcha answer — pause and ask, then type what you enter and carry on. The machine keeps the flow; you only supply the part a machine shouldn't.",
  "tags": ["human-in-loop", "captcha", "otp"],
  "vars": { "login_url": "https://example.com/verify" },
  "on_error": "screenshot_and_stop",
  "steps": [
    { "open": {} },
    { "goto": { "url": "{{login_url}}" } },
    { "prompt": { "message": "Enter the one-time code sent to your phone", "into": "otp" } },
    { "type": { "into": "code", "text": "{{otp}}", "enter": true } },
    { "wait": { "seconds": 3 } },
    { "screenshot": { "path": "verified.png" } },
    { "close": {} }
  ]
}
