Skip to content

ToolCallDisplayInput

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/toolDisplay.ts:84

Everything a formatter may look at for one tool call. Both surfaces build this from their own state (the TUI from ToolCallViewModel, the plain surface from the message stream).

optional argsText?: string

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/toolDisplay.ts:88

The raw streamed args JSON (possibly partial mid-stream, possibly invalid).


optional isError?: boolean

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/toolDisplay.ts:94

The real ToolMessage.status === 'error' signal (TUI-C7) — never sniffed from text.


optional liveOutputAlreadyShown?: boolean

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/toolDisplay.ts:106

True when the live child output ALREADY streamed raw to the user’s terminal (the plain surface’s default sink). Formatters then suppress the duplicated output body and render only the closing status — the TUI-C17 “output AND result repeat each other” dedupe.


name: string

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/toolDisplay.ts:86

The gth tool name (read_file, run_shell_command, a custom tool’s name).


optional output?: string

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/toolDisplay.ts:92

Live streamed child output (TUI only — the tool_output channel’s accumulation).


optional raterClarification?: boolean

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/toolDisplay.ts:100

[[TUI-C69]] §5.4 — the gate refused this call BACK TO THE AGENT as a negotiation round, so the status row reads as a clarification request rather than as a failure. See toolStatusDisplay. Display-only, and additive to isError.


optional result?: string

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/toolDisplay.ts:90

The final model-facing tool result, when it has arrived.