{
  "schema_version": 1,
  "name": "Reuse a snippet with Call-workflow",
  "version": 1,
  "description": "Open a page, then run the reusable 'accept a cookie banner' snippet as a sub-step before doing the real work — so you write that handling once and call it from every flow. The sub-workflow is resolved locally and always runs at the least-trusted level of caller and callee.",
  "tags": ["reuse", "call", "composition"],
  "vars": { "url": "https://example.com" },
  "on_error": "screenshot_and_stop",
  "steps": [
    { "open": {} },
    { "goto": { "url": "{{url}}" } },
    { "call": { "flow": "snippet-accept-cookies" } },
    { "wait_for": { "text": "Continue", "timeout": 15 } },
    { "click": { "text": "Continue" } },
    { "screenshot": { "path": "done.png" } },
    { "close": {} }
  ]
}
