Skip to content

Function: action()

action(spec): RegisteredAction

Defined in: control.ts:307

Declare one action — the verb form of the surface. It becomes a real, named, described agent tool the moment registerStandardTools is active (declared before or after; the surface subscription covers both orders).

Parameters

spec

ActionSpec

Returns

RegisteredAction