summariseToolCall
summariseToolCall(
name,argsText,secrets?):string
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/toolDisplay.ts:539
One-line call summary: name(arg=val, other=…). Key args only (per the registry entry, or
all args for unknown tools), each value inlined + truncated, the whole parenthesised part
capped at TOOL_SUMMARY_MAX_CHARS, and everything secret-redacted (literals +
provider patterns). Unparsable (mid-stream/malformed) args render as name(…) — never a
raw JSON dump. secrets defaults to the env-derived literals; pass explicitly for tests.
Redaction runs BEFORE every truncation step (per value in formatParamValue, and again
before the whole-summary cap): truncating first would bisect a literal secret longer than a
cap so it no longer literal-matches, leaking its head into the rendered summary
(fix-cycle-1 finding). The final pass over the assembled string is defense in depth only —
redactText is idempotent, so re-redacting already-marked text is safe.
Parameters
Section titled “Parameters”string
argsText
Section titled “argsText”string | undefined
secrets?
Section titled “secrets?”readonly string[] = ...
Returns
Section titled “Returns”string