GthToolOutputChunk
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/toolOutputChannel.ts:35
One emitted piece of live tool output, attributed to the tool (and call) that produced it.
Properties
Section titled “Properties”kind:
"output"|"error"|"notice"|"warning"
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/toolOutputChannel.ts:51
notice — the “🔧 Executing …” announcement (historically displayInfo);
output — a verbatim child stdout/stderr chunk (historically stdout.write);
warning / error — a failure-path advisory (historically displayWarning/displayError),
e.g. a hardline refusal or a spawn-level failure. TUI-C31 (a): routing these through the
channel keeps them out of raw stdout while the Ink frame is mounted; the default sink still
renders them via displayWarning/displayError for every non-TUI surface, byte-for-byte.
text:
string
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/toolOutputChannel.ts:58
The text, verbatim. Notices carry NO leading newline — raw-console framing (the historical
leading \n) is the default sink’s concern, not the producer’s. A warning/error DOES
carry whatever leading framing its historical displayWarning/displayError call had (the
default sink forwards it unchanged), so headless output stays byte-for-byte identical.
toolCallId?
Section titled “toolCallId?”
optionaltoolCallId?:string
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/toolOutputChannel.ts:40
The LangChain tool call id this output belongs to (ToolRunnableConfig.toolCall.id),
when the invoking framework supplied one. Lets a consumer nest output under the exact call.
toolName
Section titled “toolName”toolName:
string
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/toolOutputChannel.ts:42
The gth tool name (e.g. run_shell_command, a custom tool’s name). Always known.