textForLLM

Formats this result like a terminal session.

Returns a multi-line string showing:

  • The command that was run

  • Everything it printed, or "(no output)" if the command succeeded but printed nothing

  • The exit code (omitted if the command was denied or timed out)

Return

Formatted string ready for display or logging