Accept a subset of html as a tool output? So if a CLI tool wants to output a list just do:
printf(“<li>item 1”);
And legacy tools are obviously supported as raw text since their output doesn’t start with a magic html tag.