data/tools/mcp_tool
library
Functions
-
classifyMcpToolForCollapse(String serverName, String toolName)
→ McpToolClassification
-
Classify an MCP tool as a search/read operation for UI collapsing.
Tool name is normalized from camelCase/kebab-case to snake_case before
lookup. Unknown tool names return isSearch=false, isRead=false
(conservative -- they won't collapse).
-
isOutputLineTruncated(String output)
→ bool
-
Check if an output string appears to have been truncated.
Matches the isOutputLineTruncated utility from the TS codebase.