Load own test steps into test plan

I want to load test steps into my OpenTAP test plan when a button in the WebView is clicked. The idea is:

  1. The WebView UI displays available test steps.

  2. When they click the “Add to Test Plan” button, the selected steps are programmatically inserted into the current OpenTAP test plan.

  3. This should update the test plan in the Editor in real time or trigger the backend to append the steps so the plan is ready to execute.

The test steps are successfully passed into the editor, however, it kept showing error loading a test plan when I loaded the current test plan using session.GetType().GetMethod(“GetTestPlans”).
When I tried to use Engine to load the current test plan, it shows The name ‘Engine’ does not exist in the current context. Im using OpenTAP 9.28.0, Editor CE 9.17.5
What ways could I use to load my test steps into the test plan?