Skip to content

ToolAction

A button. The first one is what Return runs; primary draws it filled.

optional hidden?: boolean

No button: a live tool’s first action, which already runs as you type.


optional icon?: string

SF Symbol name.


id: string


optional role?: "default" | "primary" | "destructive"


optional showWhen?: ToolCondition

Only shown in some modes, like a field’s showWhen.


title: string

Short and verb-first: “Look Up”, “Format”, “Convert”.