import { baseTools } from "./registry.js";
export function getToolByName(name) {
    const tool = baseTools.find((candidate) => candidate.name === name);
    if (!tool)
        throw new Error(`tool not found: ${name}`);
    return tool;
}
export function getOptionalToolByName(name) {
    return baseTools.find((candidate) => candidate.name === name);
}
