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

Function parseToolPreset

src/tools.ts:165–171  ·  view source on GitHub ↗
(preset: string)

Source from the content-addressed store, hash-verified

163export type ToolPreset = (typeof TOOL_PRESETS)[number]
164
165export function parseToolPreset(preset: string): ToolPreset | null {
166 const presetString = preset.toLowerCase()
167 if (!TOOL_PRESETS.includes(presetString as ToolPreset)) {
168 return null
169 }
170 return presetString as ToolPreset
171}
172
173/**
174 * 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