diff --git a/Library/Api/IScriptFlowApi.cs b/Library/Api/IScriptFlowApi.cs
new file mode 100644
index 0000000..e7539b2
--- /dev/null
+++ b/Library/Api/IScriptFlowApi.cs
@@ -0,0 +1,58 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Serein.Library.Api
+{
+ ///
+ /// 脚本代码中关于流程运行的API
+ ///
+ public interface IScriptFlowApi
+ {
+ ///
+ /// 当前流程
+ ///
+ IFlowEnvironment Env { get; }
+ ///
+ /// 对应的节点
+ ///
+ NodeModelBase NodeModel { get; }
+
+ ///
+ /// 动态流程上下文
+ ///
+ IDynamicContext Context { get; set; }
+
+ ///
+ /// 根据索引从入参数据获取数据
+ ///
+ ///
+ ///
+ object GetDataOfParams(int index);
+ ///
+ /// 根据入参名称从入参数据获取数据
+ ///
+ ///
+ ///
+ object GetDataOfParams(string name);
+ ///
+ /// 获取全局数据
+ ///
+ ///
+ ///
+ object GetGlobalData(string keyName);
+ ///
+ /// 获取流程当前传递的数据
+ ///
+ ///
+ object GetFlowData();
+ ///
+ /// 立即调用某个节点并获取其返回值
+ ///
+ ///
+ ///
+ Task