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

Function parseToolPreset

source code/tools.ts:167–173  ·  view source on GitHub ↗
(preset: string)

Source from the content-addressed store, hash-verified

165export type ToolPreset = (typeof TOOL_PRESETS)[number]
166
167export function parseToolPreset(preset: string): ToolPreset | null {
168 const presetString = preset.toLowerCase()
169 if (!TOOL_PRESETS.includes(presetString as ToolPreset)) {
170 return null
171 }
172 return presetString as ToolPreset
173}
174
175/**
176 * Get the list of tool names for a given preset

Callers 1

parseBaseToolsFromCLIFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected