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

Function parseToolPreset

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

Source from the content-addressed store, hash-verified

180export type ToolPreset = (typeof TOOL_PRESETS)[number]
181
182export function parseToolPreset(preset: string): ToolPreset | null {
183 const presetString = preset.toLowerCase()
184 if (!TOOL_PRESETS.includes(presetString as ToolPreset)) {
185 return null
186 }
187 return presetString as ToolPreset
188}
189
190/**
191 * 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