Skip to content

subscribeToolOutput

subscribeToolOutput(listener): () => void

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/toolOutputChannel.ts:79

Subscribe to live tool output, replacing the default stdout/displayInfo sink for as long as the subscription is active. Returns an unsubscribe function. Last subscriber wins; the returned unsubscribe only clears its OWN registration (a stale unsubscribe can never detach a newer subscriber).

GthToolOutputListener

() => void