Use this scenario
Run
Run project_website_screenshots scenario.
Use run_scenario with the saved scenario name and string-valued inputs. Required values are requested before execution.
View invocation JSON
{
"scenario_name": "project_website_screenshots",
"inputs": {
"name": "your name",
"draft_id": ""
}
}Inputs
PARAMETERS| Input | Requirement | Default value |
|---|---|---|
name | Required | No default |
draft_id | Optional | |
Agent instructions
SYSTEM PROMPTDelegate server startup and screenshot capture to separate fresh subagents. Host execution permission is mandatory. Never start a browser without it or present screenshots as functional test results.
Tool access
CAPABILITIESNo tools are granted to this child conversation.
Ordered steps
EXECUTION- 01NESTED SCENARIO / FRESH CHILD
name= {{name}}draft_id= {{draft_id}}
Save output as
server. - 02CONDITION / HOST EVALUATED
Input
server.statusequals startedTHEN
- 01
ELSE
- 01STRUCTURED RESULT / HOST COMPOSED
status= {{server.status}}message= {{server.message}}
Return to main
COPY EXITReturn actual screenshot paths and hashes or the host execution request unchanged.
The final text returns without model rewriting. Bound operation scenarios return application results; pending changes still require host approval.
Complete XML, including any embedded C#. Copy it without changing the file's contents.
<scenario schemaVersion="3" id="project_website_screenshots" title="Start a website preview and capture three screenshots">
<inputs><input name="name" required="true" /><input name="draft_id" default="" /></inputs>
<systemPrompt>Delegate server startup and screenshot capture to separate fresh subagents. Host execution permission is mandatory. Never start a browser without it or present screenshots as functional test results.</systemPrompt>
<steps>
<run scenario="project_preview_start" result="server"><input name="name" value="{{name}}" /><input name="draft_id" value="{{draft_id}}" /></run>
<if input="server.status" equals="started"><then><run scenario="project_preview_capture" /></then><else><result><field name="status" value="{{server.status}}" /><field name="message" value="{{server.message}}" /></result></else></if>
</steps>
<exit mode="copy">Return actual screenshot paths and hashes or the host execution request unchanged.</exit>
</scenario>
Every part, briefly.
Short explanations of every element and chat step in this scenario.
- 01Writing example ↗
<scenario>Names and versions the workflow.
- 02Writing example ↗
<inputs>Declares input values.
- 03Writing example ↗
<input>nameRequires a supplied value.
- 04Writing example ↗
<input>draft_idProvides an optional value.
- 05Writing example ↗
<systemPrompt>Sets the child's instructions.
- 06Writing example ↗
<steps>Orders the chat turns.
- 07Writing example ↗
<run>Invokes a fresh saved child scenario.
- 08Writing example ↗
<input>nameBinds a named operation or child input.
- 09Writing example ↗
<input>draft_idBinds a named operation or child input.
- 10Writing example ↗
<if>Checks real workspace state or an input value.
- 11Writing example ↗
<then>Runs when the condition matches.
- 12Writing example ↗
<run>Invokes a fresh saved child scenario.
- 13Writing example ↗
<else>Runs when the condition does not match.
- 14Writing example ↗
<result>Returns structured JSON data.
- 15Writing example ↗
<field>statusBinds one returned field.
- 16Writing example ↗
<field>messageBinds one returned field.
- 17Writing example ↗
<exit>Returns the output unchanged.