Skip to main content

Interface: SetViewPresetAction

Defined in: runtime/action.ts:90

Moves the camera to a named ViewPreset declared in spec.viewPresets — bounded to positions the application actually curated, instead of raw coordinates an AI would otherwise have to invent. Compiles to the same runtime.setView() mechanism a UI camera control already uses.

Properties

presetId

presetId: string

Defined in: runtime/action.ts:93

Id of the preset to move to — must match spec.viewPresets[].id.


rationale?

optional rationale?: string

Defined in: runtime/action.ts:95

Optional free-text reason, preserved on the action log entry for audit.


type

type: "set-view-preset"

Defined in: runtime/action.ts:91