(_ string)
| 218 | } |
| 219 | |
| 220 | func cmdTools(_ string) { |
| 221 | fmt.Println(ui.Dimmed("tools available:")) |
| 222 | for _, def := range rootAgent.Tools.Definitions() { |
| 223 | origin := "" |
| 224 | // Type-assert the registered Tool to detect MCP-backed ones. Local |
| 225 | // Go tools won't satisfy *mcp.MCPTool, so the marker only appears |
| 226 | // next to tools that live behind a remote server. |
| 227 | if t, ok := rootAgent.Tools.Get(def.Name); ok { |
| 228 | if _, isMCP := t.(*mcp.MCPTool); isMCP { |
| 229 | origin = " " + ui.Dimmed("(mcp)") |
| 230 | } |
| 231 | } |
| 232 | fmt.Printf(" %s%s %s\n", ui.Cyan(def.Name), origin, ui.Dimmed(def.Description)) |
| 233 | } |
| 234 | } |
| 235 | |
| 236 | // cmdSubagents lists registered subagent types and, separately, any that |
| 237 | // are currently running. The active list is empty when nothing is in flight. |
nothing calls this directly
no test coverage detected