MCPcopy Index your code
hub / github.com/codeaashu/claude-code / hasToolResultContent

Function hasToolResultContent

src/utils/attachments.ts:2447–2449  ·  view source on GitHub ↗

* Check whether a user message's content contains tool_result blocks. * This is more reliable than checking `toolUseResult === undefined` because * sub-agent tool result messages explicitly set `toolUseResult` to `undefined` * when `preserveToolUseResults` is false (the default for Explore agents

(content: unknown)

Source from the content-addressed store, hash-verified

2445 * when `preserveToolUseResults` is false (the default for Explore agents).
2446 */
2447function hasToolResultContent(content: unknown): boolean {
2448 return Array.isArray(content) && content.some(isToolResultBlock)
2449}
2450
2451/**
2452 * Tools that succeeded (and never errored) since the previous real turn

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected