Skip to content

toolmark-monorepo / @toolmark/core / ConfirmRequest

Interface: ConfirmRequest ​

Defined in: packages/core/src/registry.ts:51

A confirmation request handed to the inline confirm handler.

Properties ​

caller ​

caller: Caller

Defined in: packages/core/src/registry.ts:59

Who asked.


changes? ​

optional changes?: FieldChange[]

Defined in: packages/core/src/registry.ts:75

Field changes to show, if any (sensitive values redacted).


confirmId ​

confirmId: string

Defined in: packages/core/src/registry.ts:53

Unique id of this confirmation.


hints ​

hints: ToolHints

Defined in: packages/core/src/registry.ts:71

The tool's hints.


input ​

input: unknown

Defined in: packages/core/src/registry.ts:69

Validated input, with every value at the tool's sensitive paths replaced by '[redacted]' (the whole input when its redaction fails). The tool runs with the unredacted input. An approval that edits input may send this copy back with its changes: a sensitive path still holding '[redacted]' gets its real value back, one the approver changed keeps the new value. A placeholder inside an array row that was deleted, inserted, reordered or edited (or under a restructured key), or any other placeholder the original input did not hold at that position, is refused as invalid "Re-enter sensitive field" at its path.


summary ​

summary: string

Defined in: packages/core/src/registry.ts:73

User-facing summary.


title? ​

optional title?: string

Defined in: packages/core/src/registry.ts:57

Tool title, if any.


tool ​

tool: string

Defined in: packages/core/src/registry.ts:55

Full tool name.