# format_diagnostics_content

> **Function** in `deepagents_code`

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

Render workspace refusal diagnostics as markup-safe TUI content.

Every dynamic value (field names, allowlisted values) flows through
`Content.from_markup` `$var` substitution, so square brackets in a value
can never break Rich markup parsing.

## Signature

```python
format_diagnostics_content(
    diagnostics: WorkspaceDiagnostics,
) -> Content
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `diagnostics` | `WorkspaceDiagnostics` | Yes | Parsed diagnostics from a server refusal. |

## Returns

`Content`

A styled summary of what changed since the thread was bound.

---

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