MCPcopy Create free account
hub / github.com/betta-tech/byo-coding-agent / cmdTools

Function cmdTools

commands.go:220–234  ·  view source on GitHub ↗
(_ string)

Source from the content-addressed store, hash-verified

218}
219
220func 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.

Callers

nothing calls this directly

Calls 4

DimmedFunction · 0.92
CyanFunction · 0.92
DefinitionsMethod · 0.80
GetMethod · 0.80

Tested by

no test coverage detected