Package render turns a (masked) result into the text an agent sees: TSV
or JSON, within the profile's row, cell and output caps. Control and
bidirectional characters are escaped, invalid UTF-8 is replaced, NULL is
"NULL" (null in JSON), binary values are "<bytes:N>" and times ISO 8601.
Cells are cut while they are converted, so a huge value never costs more
than its cap in output.
Render writes res to w in format "tsv" (the default when empty) or
"json". Limits that are zero or negative take the non-production
defaults. Rows beyond MaxRows are dropped and reported as truncated; rows
that would push the output past MaxOutputBytes are dropped with a marker.
Table is the TSV rendering of a result split into cells, with the same
caps as Render: the header labels, the rows shown and the lines after
them (cut marker, row count).