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

Function isToolSearchOrRead

source code/utils/collapseReadSearch.ts:280–286  ·  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

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