render

package
v0.10.474 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package render produces text renderings of tool results for MCP clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderKV

func RenderKV(title string, records []map[string]any) string

RenderKV renders sparse / single-record / mixed-shape results as labelled records.

func RenderTable

func RenderTable(rows []map[string]any) string

RenderTable renders a uniform multi-row result set as a markdown table. Column order is stable: the union of keys across all rows, sorted alphabetically.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL