pub fn truncate_tool_output_at(output: &str, max_chars: usize) -> String
Truncate tool output that exceeds max_chars using head+tail split.
max_chars