# run_tools_command

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/client/commands/tools/run_tools_command)

Dispatch a `dcode tools` subcommand.

## Signature

```python
run_tools_command(
    args: argparse.Namespace,
) -> int
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `args` | `argparse.Namespace` | Yes | Parsed CLI namespace. |

## Returns

`int`

Process exit code.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/2f56309d821db4a0d06ee03959cf842c91b7f228/libs/code/deepagents_code/client/commands/tools.py#L42)