> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Display Tool Call • AI Agent SDK

> display_tool_call: Display tool call information in PraisonAI's unique timeline format.

# display\_tool\_call

<div className="flex items-center gap-2">
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**main**](../modules/main) module.

Display tool call information in PraisonAI's unique timeline format.

Uses ▸ prefix, inline timing \[X.Xs], and status icons ✓/✗ for a clean,
scannable tool activity display.

```mermaid theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%

graph LR
    agent["Agent"] -- "uses" --> tool["Tool: display_tool_call"]
    tool -- "returns" --> result["Result"]
    style tool fill:#189AB4,color:#fff
    style agent fill:#8B0000,color:#fff
    style result fill:#8B0000,color:#fff
```

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def display_tool_call(message: str, console: Any, tool_name: str, tool_input: dict, tool_output: str, elapsed_time: float, success: bool) -> Any
```

## Parameters

<ParamField query="message" type="str" required={true}>
  The tool call message (legacy format)
</ParamField>

<ParamField query="console" type="Any" required={false}>
  Rich console for output
</ParamField>

<ParamField query="tool_name" type="str" required={false}>
  Name of the tool being called
</ParamField>

<ParamField query="tool_input" type="dict" required={false}>
  Input arguments to the tool
</ParamField>

<ParamField query="tool_output" type="str" required={false}>
  Output from the tool (if available)
</ParamField>

<ParamField query="elapsed_time" type="float" required={false}>
  Time taken for tool execution in seconds
</ParamField>

<ParamField query="success" type="bool" required={false} default="True">
  Whether the tool call succeeded
</ParamField>

### Returns

<ResponseField name="Returns" type="Any">
  The result of the operation.
</ResponseField>

## Uses

* `logging.debug`
* `execute_sync_callback`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/main.py#L325">
  `praisonaiagents/main.py` at line 325
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Tools Concept" icon="wrench" href="/docs/concepts/tools" />

  <Card title="Create Custom Tools" icon="plus" href="/docs/guides/tools/create-custom-tools" />

  <Card title="Tool Development" icon="code" href="/docs/tutorials/advanced-tool-development" />

  <Card title="Display System" icon="display" href="/docs/features/display-system" />

  <Card title="Display Callbacks" icon="phone" href="/docs/features/display-callbacks" />
</CardGroup>
