Pass output stream to AsLexInput instead of the whole tool_output_file.