# format_tool_display

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/tool_display/format_tool_display)

Format tool calls for display with tool-specific smart formatting.

Shows the most relevant information for each tool type rather than all arguments.

## Signature

```python
format_tool_display(
    tool_name: str,
    tool_args: dict,
) -> str
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `tool_name` | `str` | Yes | Name of the tool being called |
| `tool_args` | `dict` | Yes | Dictionary of tool arguments |

## Returns

`str`

Formatted string for display (e.g., "(*) read_file(config.py)" in ASCII mode)

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/d1c6946218b4f0f86ab7b02b6bb6af1e4b75cede/libs/code/deepagents_code/tool_display.py#L131)