The tool/server name (registry key; unique within `tools/`).
(&self)
| 62 | impl ToolSpec { |
| 63 | /// The tool/server name (registry key; unique within `tools/`). |
| 64 | pub fn name(&self) -> &str { |
| 65 | match self { |
| 66 | ToolSpec::Mcp(cfg) => &cfg.name, |
| 67 | ToolSpec::Script(spec) => &spec.name, |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | /// The spec kind discriminant (`mcp` or `script`). |
| 72 | pub fn kind(&self) -> &str { |
no outgoing calls