MCPcopy Index your code
hub / github.com/langchain-ai/deepagents / run_tools_command

Function run_tools_command

libs/code/deepagents_code/tools_commands.py:37–55  ·  view source on GitHub ↗

Dispatch a `dcode tools` subcommand. Args: args: Parsed CLI namespace. Returns: Process exit code.

(args: argparse.Namespace)

Source from the content-addressed store, hash-verified

35
36
37def run_tools_command(args: argparse.Namespace) -> int:
38 """Dispatch a `dcode tools` subcommand.
39
40 Args:
41 args: Parsed CLI namespace.
42
43 Returns:
44 Process exit code.
45 """
46 subcommand = getattr(args, "tools_command", None)
47 if subcommand == "install":
48 return _run_tools_install(args)
49
50 # `cli_main`'s bare-group help fast path handles `dcode tools` with no
51 # subcommand, so this is only reached for an unexpected value.
52 from deepagents_code import ui
53
54 ui.show_tools_help()
55 return 0
56
57
58def _run_tools_install(args: argparse.Namespace) -> int:

Callers 4

cli_mainFunction · 0.90
_run_textFunction · 0.90

Calls 1

_run_tools_installFunction · 0.85

Tested by 3

_run_textFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…