How to register ScenarioToolscsharp
registry.Register(new AgentTool( "scenario_run", "Runs a Version9 scenario from backend/load/Scenario_<Name>.xml by executing its <Step> prompts as normal chat turns (tools allowed). Returns the final assistant message from the scenario.", args => RunScenarioTool(args), new { type = "object", properties = new { scenario_name = new { type = "string", description = "Scenario name without prefix, e.g. 'OnBoot' loads Scenario_OnBoot.xml." } }, required = new[] { "scenario_name" } }, ToolCategory.Self ));