Skip to main content

Module format

Module format 

Source
Expand description

Output formatting utilities for markdown and JSON.

Enums§

OutputFormat
Output format for query results.
ToolResult
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.
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.