Pre-Filled Template
[
{
"stage_index": 1,
"name": "Page Navigation & DOM Stabilization",
"action_type": "setup",
"description": "Navigate to target URL and wait for DOM network idle / hydration."
},
{
"stage_index": 2,
"name": "Schema-Guided Element Extraction",
"action_type": "inspection",
"description": "Stagehand extracts structured dictionary adhering to provided Pydantic model."
},
{
"stage_index": 3,
"name": "Pydantic Model Validation",
"action_type": "output_validation",
"description": "Run `Model.model_validate(data)` to verify data types and field constraints."
},
{
"stage_index": 4,
"name": "Self-Healing Selector Mutation",
"action_type": "retry",
"description": "If validation fails (missing fields or type mismatch), mutate extraction instruction with failed field path and retry."
}
]