Skip to content

parseToolArgsSafe

parseToolArgsSafe(argsText): Record<string, unknown> | null

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

Tolerant parse of a (possibly partial) streamed args JSON. Mirrors the view-model’s defensive posture: a half-streamed or malformed buffer never throws — it returns null.

string | undefined

Record<string, unknown> | null