Expand description
Output formatting utilities for markdown and JSON.
Enums§
- Output
Format - Output format for query results.
- Tool
Result - Result type for tool handlers - allows returning either JSON or raw text.
Constants§
- MAX_
TITLE_ DISPLAY_ LEN - Maximum title length in list/scan markdown output before truncation.
Functions§
- format_
attachments_ markdown - Format attachments as markdown.
- format_
scan_ result_ markdown - Format a scan result as markdown.
- format_
task_ markdown - Format a single task as markdown.
- format_
task_ tree_ markdown - Format a task tree as markdown with visual tree structure.
- format_
tasks_ markdown - Format a list of tasks as markdown. Groups tasks by their state dynamically based on the states config.
- format_
workers_ markdown - Format workers as markdown.
- markdown_
to_ json - Convert markdown to JSON value for uniform response handling.
- truncate_
title - Truncate a title for display in list/scan output. Titles longer than MAX_TITLE_DISPLAY_LEN are cut at the limit and “…” is appended. Multi-line titles are collapsed to the first line.