@mcut/editor
EditorOperator\<Input, Output\>
Generated TypeScript API reference for the public mcut SDK.
mcut SDK / editor/src / EditorOperator
Interface: EditorOperator<Input, Output>
Defined in: packages/editor/src/operators.ts:22
Type Parameters
Input
Input = unknown
Output
Output = unknown
Properties
category
category: OperatorCategory;Defined in: packages/editor/src/operators.ts:27
description
description: string;Defined in: packages/editor/src/operators.ts:26
enabled?
optional enabled?: (context, input) => EnabledResult;Defined in: packages/editor/src/operators.ts:33
Whether this operator applies in the current editor state. Returning a reason lets agent transports explain why a user-level action is unavailable.
Parameters
context
input
Input
Returns
id
id: string;Defined in: packages/editor/src/operators.ts:24
Stable id, e.g. "edit.splitSelectionAtPlayhead".
inputSchema
inputSchema: ZodType<Input, unknown>;Defined in: packages/editor/src/operators.ts:28
label
label: string;Defined in: packages/editor/src/operators.ts:25
run
run: (context, input) => Output | Promise<Output>;Defined in: packages/editor/src/operators.ts:34
Parameters
context
input
Input
Returns
Output | Promise<Output>