Skip to content

Interface: ActionSpec

Defined in: control.ts:92

An action: a registered verb the app exposes.

Properties

description?

optional description?: string

Defined in: control.ts:99

Human description — compiler-lifted from the doc comment, or explicit.


inputSchema?

optional inputSchema?: Record<string, unknown>

Defined in: control.ts:105

Real JSON Schema for the arguments, when the loose form isn't enough.


loc?

optional loc?: string

Defined in: control.ts:101

Definition site "file:line" — compiler-injected.


name?

optional name?: string

Defined in: control.ts:94

Identity — same rules as a control's name.


params?

optional params?: Record<string, string>

Defined in: control.ts:103

Human/agent-readable parameter docs (WebMCP-style loose schema).


run

run: (args?) => unknown

Defined in: control.ts:107

The implementation.

Parameters

args?

Record<string, unknown>

Returns

unknown


scope?

optional scope?: Scope

Defined in: control.ts:97

Instance qualifier (see ControlSpec.scope): the registered name — and so the derived agent tool — becomes <scope>/<name>.