ToolRunnerProps
Defined in: packages/ui-react/src/components/ToolRunner.tsx:42
Properties
Section titled “Properties”capability
Section titled “capability”capability:
Capability
Defined in: packages/ui-react/src/components/ToolRunner.tsx:44
工具能力定义(决定参数表单和输入类型)
engine
Section titled “engine”engine:
EngineFn
Defined in: packages/ui-react/src/components/ToolRunner.tsx:46
处理函数(按 capability.name 路由到对应 Blob↔Blob 操作的 wrapper)
onOpenInWorkspace?
Section titled “onOpenInWorkspace?”
optionalonOpenInWorkspace?: (state) =>void
Defined in: packages/ui-react/src/components/ToolRunner.tsx:48
在 Workspace 中打开的回调(携带当前状态)
Parameters
Section titled “Parameters”inputBlob
Section titled “inputBlob”Blob
outputBlob
Section titled “outputBlob”Blob | null
params
Section titled “params”Record<string, unknown>
Returns
Section titled “Returns”void
locale?
Section titled “locale?”
optionallocale?:"en"|"zh"|"ja"|"es"|"de"|"fr"
Defined in: packages/ui-react/src/components/ToolRunner.tsx:57
显式 UI 语言(本组件可独立于 Workspace 挂载,无 Provider 时用此 prop 指定语言;不传则回落到 html lang / URL 自动检测)。
className?
Section titled “className?”
optionalclassName?:string
Defined in: packages/ui-react/src/components/ToolRunner.tsx:58