byName

Find a Tool by its name in a drained tools/list slice (typically client.listTools().tools). Returns the first match wrapped in a Nullable!Tool, or a null Nullable when no tool carries that name, so callers can branch on presence without hand-rolling the scan. Usable via UFCS as tools.byName("calc").

  1. Nullable!Tool byName(Tool[] tools, string name)
    @safe
    Nullable!Tool
    byName
    (,
    string name
    )
  2. Nullable!Prompt byName(Prompt[] prompts, string name)