V6 / BUNDLED SCENARIO

Two runs, two branches

Two runs, two branches: 1 ordered steps in Lilith V6, with no tool access. Read the exact bundled XML and its input and exit contracts.

V6Pinned source · 920e1e35d097Exit: copy

Use this scenario

Run

Run file_branch_demo scenario.

Use run_scenario with the saved scenario name and string-valued inputs. Required values are requested before execution.

View invocation JSON
JSON
{
  "scenario_name": "file_branch_demo",
  "inputs": {
    "first_path": "first.txt",
    "second_path": "second.txt"
  }
}
SCENARIO BLUEPRINT

Read the workflow.

file_branch_demo2 INPUTS / 0 TOOLS / 1 STEPS
01

Inputs

PARAMETERS
InputRequirementDefault value
first_pathOptionalfirst.txt
second_pathOptionalsecond.txt
02

Agent instructions

SYSTEM PROMPT

Execute the declared condition and nested scenario. Report only verified workspace results.

03

Tool access

CAPABILITIES

No tools are granted to this child conversation.

04

Ordered steps

EXECUTION
  1. 01
    CONDITION / HOST EVALUATED

    Workspace path {{first_path}} exists = false

    THEN

    1. 01
      NESTED SCENARIO / FRESH CHILD

      workspace_save ↗

      • path = {{first_path}}
      • content = hello

    ELSE

    1. 01
      NESTED SCENARIO / FRESH CHILD

      workspace_save ↗

      • path = {{second_path}}
      • content = again
05

Return to main

COPY EXIT

Return the verified save receipt unchanged.

The final text returns without model rewriting. Bound operation scenarios return application results; pending changes still require host approval.

EVERY XML ELEMENT / IN FILE ORDER

Every part, briefly.

Short explanations of every element and chat step in this scenario.

  1. 01
    <scenario>

    Names and versions the workflow.

    Writing example ↗
  2. 02
    <inputs>

    Declares input values.

    Writing example ↗
  3. 03
    <input>first_path

    Provides an optional value.

    Writing example ↗
  4. 04
    <input>second_path

    Provides an optional value.

    Writing example ↗
  5. 05
    <systemPrompt>

    Sets the child's instructions.

    Writing example ↗
  6. 06
    <steps>

    Orders the chat turns.

    Writing example ↗
  7. 07
    <if>

    Checks real workspace state or an input value.

    Writing example ↗
  8. 08
    <then>

    Runs when the condition matches.

    Writing example ↗
  9. 09
    <run>

    Invokes a fresh saved child scenario.

    Writing example ↗
  10. 10
    <input>path

    Binds a named operation or child input.

    Writing example ↗
  11. 11
    <input>content

    Binds a named operation or child input.

    Writing example ↗
  12. 12
    <else>

    Runs when the condition does not match.

    Writing example ↗
  13. 13
    <run>

    Invokes a fresh saved child scenario.

    Writing example ↗
  14. 14
    <input>path

    Binds a named operation or child input.

    Writing example ↗
  15. 15
    <input>content

    Binds a named operation or child input.

    Writing example ↗
  16. 16
    <exit>

    Returns the output unchanged.

    Writing example ↗