MCPcopy Create free account
hub / github.com/WJX20/claude-code / isToolSearchOrRead

Function isToolSearchOrRead

src/utils/collapseReadSearch.ts:298–304  ·  view source on GitHub ↗

* Checks if a tool is a search/read operation (for backwards compatibility).

(
  toolName: string,
  toolInput: unknown,
  tools: Tools,
)

Source from the content-addressed store, hash-verified

296 * Checks if a tool is a search/read operation (for backwards compatibility).
297 */
298function isToolSearchOrRead(
299 toolName: string,
300 toolInput: unknown,
301 tools: Tools,
302): boolean {
303 return getToolSearchOrReadInfo(toolName, toolInput, tools).isCollapsible
304}
305
306/**
307 * Get the tool name, input, and search/read info from a message if it's a collapsible tool use.

Callers 2

isNonCollapsibleToolUseFunction · 0.85
isCollapsibleToolUseFunction · 0.85

Calls 1

getToolSearchOrReadInfoFunction · 0.85

Tested by

no test coverage detected