Skip to content

en How to Add HTML Output to a Tool

Alexandre edited this page Jul 20, 2026 · 7 revisions

How to Add HTML Output to a Tool

Turn a tool's raw JSON response into a rendered HTML view, for AI clients that can display rich output instead of plain data.

Prerequisites: a tool that already returns a working JSON response — test it once before adding a template.

Steps

  1. Open the server and go to its Tools tab, then open the tool you want to add HTML output to.

    Open the capture server to document Add HTML Output to a Tool.

    Open the capture server to document Add HTML Output to a Tool

  2. Find the HTML output template section and enable it.

  3. Fill in test argument values and run "Test & map response" — Arthur calls the real endpoint and shows you the actual response.

    Open the Tools tab, which contains the interface used by this procedure.

    Open the Tools tab, which contains the interface used by this procedure

  4. Click "Use response schema" to auto-extract the fields from that response as template variables — scalar fields become {{field}}, list fields become {{#each items}}...{{/each}} blocks.

  5. Write your HTML in the editor, using the extracted variables. Switch to the Preview tab to see it rendered live against your test data.

  6. Save.

    Bring the New tool panel into the screenshot viewport.

    Bring the New tool panel into the screenshot viewport

Confirm it worked

The Preview tab shows your real data rendered as HTML, not raw JSON. When the tool is called by an AI client, its output is now the rendered HTML instead of the plain JSON body.

Good to know

  • The editor has a full-screen mode if you're writing a longer template.
  • The same Handlebars templating approach is used for dynamic Resources — if you've built one HTML template, the other works the same way.

Related

Arthur MCP Wiki

Home


🇬🇧 English

Home · Getting Started · FAQ

⚙️ Features

Servers & Tools

Security & Access

Platform

Operations

Coming Soon

📚 Guides (46)

Connect AI Clients

Security & Access

Harness & Limits

Platform & Operations

Tools, Resources & Prompts

Servers & Import

🔌 API Integrations (230)
AI (28)
Animals (19)
Anime (14)
Anti-Malware (10)
Art & Design (23)
Authentication & Authorization (5)
Blockchain (9)
Books (16)
Business (27)
Calendar (14)
Cloud Storage & File Sharing (10)
Communication (9)
Continuous Integration (5)
Cryptocurrency (2)
Data (15)
Database (3)
Development (8)
E-commerce (5)
Government & Legal (1)
Music & Media (5)
Testing (2)
✨ Prompt Templates (90)
Analysis (6)
Code (9)
Customer Support (6)
Data Extraction (6)
DevOps (5)
Education (5)
Finance (5)
HR & Recruiting (5)
Legal (4)
Product Management (5)
Research (5)
Sales (5)
SEO & Marketing (5)
Social Media (5)
Summarization (6)
Writing (8)
💡 Concepts (37)

Connect AI Clients

Security & Access

Harness & Limits

Platform & Operations

Tools, Resources & Prompts

Servers & Import


🇧🇷 Português

Início · Primeiros Passos · FAQ

⚙️ Funcionalidades

Servidores & Ferramentas

Segurança & Acesso

Plataforma

Operações

Em Breve

📚 Guias (46)

Conectar Clientes de IA

Segurança & Acesso

Harness & Limites

Plataforma & Operações

Ferramentas, Recursos & Prompts

Servidores & Importação

🔌 Integrações de API (230)
AI (28)
Animals (19)
Anime (14)
Anti-Malware (10)
Art & Design (23)
Authentication & Authorization (5)
Blockchain (9)
Books (16)
Business (27)
Calendar (14)
Cloud Storage & File Sharing (10)
Communication (9)
Continuous Integration (5)
Cryptocurrency (2)
Data (15)
Database (3)
Development (8)
E-commerce (5)
Government & Legal (1)
Music & Media (5)
Testing (2)
✨ Templates de Prompt (90)
Analysis (6)
Code (9)
Customer Support (6)
Data Extraction (6)
DevOps (5)
Education (5)
Finance (5)
HR & Recruiting (5)
Legal (4)
Product Management (5)
Research (5)
Sales (5)
SEO & Marketing (5)
Social Media (5)
Summarization (6)
Writing (8)
💡 Conceitos (37)

Conectar Clientes de IA

Segurança & Acesso

Harness & Limites

Plataforma & Operações

Ferramentas, Recursos & Prompts

Servidores & Importação

Clone this wiki locally