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

Function isToolSearchOrRead

src/utils/collapseReadSearch.ts:278–284  ·  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

276 * Checks if a tool is a search/read operation (for backwards compatibility).
277 */
278function isToolSearchOrRead(
279 toolName: string,
280 toolInput: unknown,
281 tools: Tools,
282): boolean {
283 return getToolSearchOrReadInfo(toolName, toolInput, tools).isCollapsible
284}
285
286/**
287 * 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