MCPcopy Create free account
hub / github.com/bytedance/trae-agent / tools

Function tools

trae_agent/cli.py:707–722  ·  view source on GitHub ↗

Show available tools and their descriptions.

()

Source from the content-addressed store, hash-verified

705
706@cli.command()
707def tools():
708 """Show available tools and their descriptions."""
709 from .tools import tools_registry
710
711 tools_table = Table(title="Available Tools")
712 tools_table.add_column("Tool Name", style="cyan")
713 tools_table.add_column("Description", style="green")
714
715 for tool_name in tools_registry:
716 try:
717 tool = tools_registry[tool_name]()
718 tools_table.add_row(tool.name, tool.description)
719 except Exception as e:
720 tools_table.add_row(tool_name, f"[red]Error loading: {e}[/red]")
721
722 console.print(tools_table)
723
724
725def main():

Callers

nothing calls this directly

Calls 1

printMethod · 0.45

Tested by

no test coverage detected