# ToolRenderer

> **Class** in `deepagents_cli`

📖 [View in docs](https://reference.langchain.com/python/deepagents-cli/widgets/tool_renderers/ToolRenderer)

Strategy for building a tool's HITL approval widget.

Each renderer maps a tool name to a `(widget_class, data)` pair that
controls what the user sees in the approval box. Tools not registered
in `_RENDERER_REGISTRY` fall through to the default, which dumps all
args as `key: value` lines via `GenericApprovalWidget`.

## Signature

```python
ToolRenderer()
```

## Methods

- [`get_approval_widget()`](https://reference.langchain.com/python/deepagents-cli/widgets/tool_renderers/ToolRenderer/get_approval_widget)

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/ead1d09c7b5c2fe58044917bd7bfbb11634d55e2/libs/cli/deepagents_cli/widgets/tool_renderers.py#L18)