doc_viewer() renders long-form Markdown manuals, runbooks, or agent-generated reports alongside an automatically generated clickable table of contents.
doc_viewer()
<ComponentPreview title="Document Viewer with Table of Contents">
{
"type": "markdown_text",
"toc": true,
"title": "Runbook: Deploying Agents",
"content": "# Deploying Agents\n\n## Prerequisites\nInstall aiui and export your provider key.\n\n## Verification\nCheck /health and /api/overview after startup.\n\n## Rollback\nPin the previous wheel version in requirements.txt."
aiui
/health
/api/overview
requirements.txt
}
</ComponentPreview>
<Tabs>
<Tab title="Python">
</Tab>
<Tab title="YAML">
</Tabs>
| Parameter | Type | Description |
|---|---|---|
| content | str | Markdown document body. |
content
str
| title | str | Optional document header title. |
title
| toc | bool | Show automatic heading outline (default True). |
toc
bool
True