Skip to content

parseStandalonePlainTextToolCallBlocks

parseStandalonePlainTextToolCallBlocks(text, options?): PlainTextToolCallBlock[] | null

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/toolCallRepair/payload.ts:419

Parse the WHOLE input into standalone plain-text tool-call blocks, or return null if any part of it is not such a block. This all-or-nothing walk is the standalone-only gate: prose that merely mentions a tool name, contains brackets, or embeds a call inside a sentence never parses (the first non-block character aborts the parse). Allow-list + payload-cap gating are applied per block via PlainTextToolCallParseOptions.

string

PlainTextToolCallParseOptions

PlainTextToolCallBlock[] | null