MCPcopy Create free account
hub / github.com/Noumena-Network/code / isToolSearchOrRead

Function isToolSearchOrRead

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

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

(
  toolName: string,
  toolInput: unknown,
  tools: Tools,
  behavior?: CollapseBehavior,
)

Source from the content-addressed store, hash-verified

294 * Checks if a tool is a search/read operation (for backwards compatibility).
295 */
296function isToolSearchOrRead(
297 toolName: string,
298 toolInput: unknown,
299 tools: Tools,
300 behavior?: CollapseBehavior,
301): boolean {
302 return getToolSearchOrReadInfo(toolName, toolInput, tools, behavior)
303 .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