toolmark-monorepo / @toolmark/tour / TourStep
Interface: TourStep
Defined in: packages/tour/src/types.ts:17
One tour step. Steps reference tools and params, never CSS selectors (spec §11.5).
Example
`{ tool: 'challenges.create.fill', param: 'type', text: 'Pick the challenge type' }`Properties
input?
optionalinput?:unknown
Defined in: packages/tour/src/types.ts:31
do mode: the tool input. Form fills may pass the field values directly (wrapped as { values } when the tool's input schema has a values property); wizard fills pass { steps: … } unchanged. Omitted → {}.
param?
optionalparam?:string
Defined in: packages/tour/src/types.ts:21
Input path the step points at, e.g. type, items.0.qty, or <step>.<path> for wizards.
text
text:
string
Defined in: packages/tour/src/types.ts:25
App-localized explanation shown for the step.
title?
optionaltitle?:string
Defined in: packages/tour/src/types.ts:23
App-localized step title.
tool
tool:
string
Defined in: packages/tour/src/types.ts:19
Full tool name, e.g. challenges.create.fill.
waitFor?
optionalwaitFor?:"input"|"submit"
Defined in: packages/tour/src/types.ts:33
guide mode: advance on a valid input (default) or on the user's submit.